sidepanel.css 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382
  1. /* ============================================================
  2. MultiPage Automation — Side Panel
  3. Design: Swiss Modernism + Developer Tool
  4. Font: Inter (UI) + JetBrains Mono (code)
  5. Themes: Light (default) + Dark (toggle)
  6. ============================================================ */
  7. /* ---- Light Theme (default) ---- */
  8. :root {
  9. --bg-base: #ffffff;
  10. --bg-surface: #f7f8fa;
  11. --bg-elevated: #eef0f4;
  12. --bg-hover: #e4e7ec;
  13. --bg-active: #dce0e8;
  14. --border: #d8dce3;
  15. --border-subtle: #e8ecf1;
  16. --text-primary: #1a1d24;
  17. --text-secondary: #5c6370;
  18. --text-muted: #9ca3af;
  19. --blue: #2563eb;
  20. --blue-soft: rgba(37, 99, 235, 0.08);
  21. --blue-glow: rgba(37, 99, 235, 0.12);
  22. --green: #16a34a;
  23. --green-soft: rgba(22, 163, 74, 0.08);
  24. --orange: #ea580c;
  25. --orange-soft: rgba(234, 88, 12, 0.08);
  26. --red: #dc2626;
  27. --red-soft: rgba(220, 38, 38, 0.08);
  28. --cyan: #0891b2;
  29. --purple: #7c3aed;
  30. --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  31. --shadow-md: 0 2px 6px rgba(0,0,0,0.06);
  32. --radius-sm: 6px;
  33. --radius-md: 8px;
  34. --transition: 150ms ease;
  35. }
  36. /* ---- Dark Theme ---- */
  37. [data-theme="dark"] {
  38. --bg-base: #0f1117;
  39. --bg-surface: #181a21;
  40. --bg-elevated: #21242d;
  41. --bg-hover: #2a2e38;
  42. --bg-active: #323844;
  43. --border: #2a2e38;
  44. --border-subtle: #21242d;
  45. --text-primary: #e4e6eb;
  46. --text-secondary: #8b919e;
  47. --text-muted: #565c6a;
  48. --blue: #3b82f6;
  49. --blue-soft: rgba(59, 130, 246, 0.12);
  50. --blue-glow: rgba(59, 130, 246, 0.18);
  51. --green: #22c55e;
  52. --green-soft: rgba(34, 197, 94, 0.12);
  53. --orange: #f97316;
  54. --orange-soft: rgba(249, 115, 22, 0.12);
  55. --red: #ef4444;
  56. --red-soft: rgba(239, 68, 68, 0.12);
  57. --cyan: #06b6d4;
  58. --purple: #a78bfa;
  59. --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  60. --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
  61. }
  62. * { margin: 0; padding: 0; box-sizing: border-box; }
  63. body {
  64. font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  65. font-size: 14px;
  66. color: var(--text-primary);
  67. background: var(--bg-base);
  68. padding: 12px;
  69. width: 100%;
  70. min-height: 100vh;
  71. -webkit-font-smoothing: antialiased;
  72. transition: background var(--transition), color var(--transition);
  73. }
  74. /* ============================================================
  75. Header
  76. ============================================================ */
  77. header {
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. margin-bottom: 14px;
  82. padding-bottom: 12px;
  83. border-bottom: 1px solid var(--border-subtle);
  84. }
  85. .header-left {
  86. display: flex;
  87. align-items: center;
  88. gap: 8px;
  89. }
  90. .header-left svg { color: var(--blue); }
  91. .header-left h1 {
  92. font-size: 16px;
  93. font-weight: 700;
  94. letter-spacing: -0.02em;
  95. color: var(--text-primary);
  96. }
  97. .header-btns {
  98. display: flex;
  99. align-items: center;
  100. gap: 4px;
  101. }
  102. /* ============================================================
  103. Theme Toggle
  104. ============================================================ */
  105. .theme-toggle {
  106. width: 30px;
  107. height: 30px;
  108. border: none;
  109. background: transparent;
  110. color: var(--text-muted);
  111. border-radius: var(--radius-sm);
  112. cursor: pointer;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. transition: all var(--transition);
  117. }
  118. .theme-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
  119. .theme-toggle .icon-moon { display: block; }
  120. .theme-toggle .icon-sun { display: none; }
  121. [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
  122. [data-theme="dark"] .theme-toggle .icon-sun { display: block; }
  123. .header-menu {
  124. position: relative;
  125. display: flex;
  126. align-items: center;
  127. }
  128. .header-config-btn {
  129. min-width: 0;
  130. padding-inline: 10px;
  131. }
  132. .header-config-btn[aria-expanded="true"] {
  133. background: var(--bg-hover);
  134. color: var(--text-primary);
  135. }
  136. .header-dropdown {
  137. position: absolute;
  138. top: calc(100% + 6px);
  139. right: 0;
  140. min-width: 120px;
  141. padding: 6px;
  142. display: flex;
  143. flex-direction: column;
  144. gap: 4px;
  145. background: var(--bg-base);
  146. border: 1px solid var(--border);
  147. border-radius: var(--radius-sm);
  148. box-shadow: var(--shadow-md);
  149. z-index: 1300;
  150. }
  151. .header-dropdown[hidden] {
  152. display: none !important;
  153. }
  154. .header-dropdown-item {
  155. width: 100%;
  156. padding: 8px 10px;
  157. border: none;
  158. border-radius: var(--radius-sm);
  159. background: transparent;
  160. color: var(--text-secondary);
  161. font: inherit;
  162. font-size: 12px;
  163. font-weight: 600;
  164. text-align: left;
  165. cursor: pointer;
  166. transition: background var(--transition), color var(--transition);
  167. }
  168. .header-dropdown-item:hover:not(:disabled) {
  169. background: var(--bg-hover);
  170. color: var(--text-primary);
  171. }
  172. .header-dropdown-item:disabled {
  173. color: var(--text-muted);
  174. cursor: not-allowed;
  175. }
  176. /* ============================================================
  177. Buttons
  178. ============================================================ */
  179. .btn {
  180. display: inline-flex;
  181. align-items: center;
  182. gap: 6px;
  183. padding: 7px 14px;
  184. font-family: inherit;
  185. font-size: 13px;
  186. font-weight: 600;
  187. border: 1px solid transparent;
  188. border-radius: var(--radius-sm);
  189. cursor: pointer;
  190. transition: all var(--transition);
  191. white-space: nowrap;
  192. }
  193. .btn-primary {
  194. background: var(--blue);
  195. color: #fff;
  196. }
  197. .btn-primary:hover { opacity: 0.9; box-shadow: 0 2px 8px var(--blue-glow); }
  198. .btn-success {
  199. background: var(--green);
  200. color: #fff;
  201. }
  202. .btn-success:hover { opacity: 0.9; box-shadow: 0 2px 8px var(--green-soft); }
  203. .btn-danger {
  204. background: var(--red);
  205. color: #fff;
  206. }
  207. .btn-danger:hover { opacity: 0.9; box-shadow: 0 2px 8px var(--red-soft); }
  208. .run-group {
  209. display: flex;
  210. align-items: center;
  211. gap: 4px;
  212. }
  213. .run-count-input {
  214. width: 42px;
  215. padding: 6px 4px;
  216. text-align: center;
  217. background: var(--bg-base);
  218. border: 1px solid var(--border);
  219. border-radius: var(--radius-sm);
  220. color: var(--text-primary);
  221. font-family: 'JetBrains Mono', monospace;
  222. font-size: 13px;
  223. font-weight: 600;
  224. outline: none;
  225. }
  226. .run-count-input:focus { border-color: var(--blue); }
  227. .run-count-input::-webkit-inner-spin-button { opacity: 0.5; }
  228. .btn-success:disabled, .btn-primary:disabled, .btn-danger:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
  229. .run-count-input:disabled { opacity: 0.5; cursor: not-allowed; }
  230. .btn-ghost {
  231. background: transparent;
  232. color: var(--text-secondary);
  233. padding: 6px;
  234. border-radius: var(--radius-sm);
  235. }
  236. .btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
  237. .btn-outline {
  238. background: transparent;
  239. border: 1px solid var(--border);
  240. color: var(--text-secondary);
  241. }
  242. .btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
  243. .btn-sm { padding: 5px 12px; font-size: 12px; }
  244. .btn-xs { padding: 4px 10px; font-size: 11px; }
  245. /* ============================================================
  246. Data Card
  247. ============================================================ */
  248. #data-section { margin-bottom: 14px; }
  249. .data-card {
  250. background: var(--bg-surface);
  251. border: 1px solid var(--border);
  252. border-radius: var(--radius-md);
  253. padding: 12px 14px;
  254. display: flex;
  255. flex-direction: column;
  256. gap: 9px;
  257. box-shadow: var(--shadow-sm);
  258. }
  259. .data-card.is-locked {
  260. position: relative;
  261. overflow: hidden;
  262. }
  263. .data-card.is-locked::after {
  264. content: '';
  265. position: absolute;
  266. inset: 0;
  267. border-radius: inherit;
  268. background: color-mix(in srgb, var(--bg-base) 18%, transparent);
  269. pointer-events: none;
  270. }
  271. .section-mini-header {
  272. display: flex;
  273. align-items: center;
  274. justify-content: space-between;
  275. gap: 8px;
  276. }
  277. .section-mini-copy {
  278. min-width: 0;
  279. display: flex;
  280. flex-direction: column;
  281. gap: 2px;
  282. }
  283. .section-mini-actions {
  284. display: flex;
  285. align-items: center;
  286. gap: 6px;
  287. flex-wrap: wrap;
  288. justify-content: flex-end;
  289. }
  290. .section-hint {
  291. color: var(--text-muted);
  292. font-size: 12px;
  293. }
  294. .data-row {
  295. display: flex;
  296. align-items: center;
  297. gap: 8px;
  298. }
  299. .data-check-row {
  300. align-items: flex-start;
  301. }
  302. .data-inline {
  303. display: flex;
  304. align-items: center;
  305. gap: 8px;
  306. flex: 1;
  307. min-width: 0;
  308. }
  309. .data-value-actions {
  310. justify-content: space-between;
  311. }
  312. .input-with-icon {
  313. position: relative;
  314. flex: 1;
  315. min-width: 0;
  316. display: flex;
  317. align-items: center;
  318. }
  319. .data-label {
  320. width: 56px;
  321. font-size: 11px;
  322. font-weight: 700;
  323. color: var(--text-muted);
  324. text-transform: uppercase;
  325. letter-spacing: 0.06em;
  326. flex-shrink: 0;
  327. }
  328. .data-value {
  329. font-size: 13px;
  330. color: var(--text-muted);
  331. min-width: 0;
  332. }
  333. .data-value-fill {
  334. flex: 1;
  335. }
  336. .data-value.has-value { color: var(--text-primary); }
  337. .mono {
  338. font-family: 'JetBrains Mono', 'Consolas', monospace;
  339. font-size: 12px;
  340. }
  341. .truncate {
  342. overflow: hidden;
  343. text-overflow: ellipsis;
  344. white-space: nowrap;
  345. }
  346. .data-input {
  347. flex: 1;
  348. padding: 7px 10px;
  349. background: var(--bg-base);
  350. border: 1px solid var(--border);
  351. border-radius: var(--radius-sm);
  352. color: var(--text-primary);
  353. font-family: 'JetBrains Mono', monospace;
  354. font-size: 13px;
  355. outline: none;
  356. transition: border-color var(--transition), box-shadow var(--transition);
  357. min-width: 0;
  358. }
  359. .data-input::placeholder { color: var(--text-muted); }
  360. .data-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  361. .data-textarea {
  362. width: 100%;
  363. min-height: 88px;
  364. resize: vertical;
  365. padding: 8px 10px;
  366. background: var(--bg-base);
  367. border: 1px solid var(--border);
  368. border-radius: var(--radius-sm);
  369. color: var(--text-primary);
  370. font-family: 'JetBrains Mono', monospace;
  371. font-size: 12px;
  372. outline: none;
  373. transition: border-color var(--transition), box-shadow var(--transition);
  374. }
  375. .data-textarea::placeholder { color: var(--text-muted); }
  376. .data-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  377. .data-input-with-icon {
  378. padding-right: 38px;
  379. }
  380. .input-icon-btn {
  381. position: absolute;
  382. right: 8px;
  383. width: 24px;
  384. height: 24px;
  385. padding: 0;
  386. display: inline-flex;
  387. align-items: center;
  388. justify-content: center;
  389. border: none;
  390. background: transparent;
  391. color: var(--text-muted);
  392. cursor: pointer;
  393. border-radius: 999px;
  394. transition: color var(--transition), background var(--transition);
  395. }
  396. .input-icon-btn:hover {
  397. color: var(--text-primary);
  398. background: var(--bg-hover);
  399. }
  400. .choice-group {
  401. flex: 1;
  402. min-width: 0;
  403. display: inline-flex;
  404. align-items: center;
  405. gap: 6px;
  406. }
  407. .choice-btn {
  408. flex: 1;
  409. min-width: 0;
  410. padding: 7px 10px;
  411. border: 1px solid var(--border);
  412. border-radius: var(--radius-sm);
  413. background: var(--bg-base);
  414. color: var(--text-secondary);
  415. font-size: 12px;
  416. font-weight: 600;
  417. cursor: pointer;
  418. transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  419. }
  420. .choice-btn:hover {
  421. border-color: var(--blue);
  422. color: var(--blue);
  423. background: var(--blue-soft);
  424. }
  425. .choice-btn.is-active {
  426. border-color: var(--blue);
  427. color: var(--blue);
  428. background: var(--blue-soft);
  429. box-shadow: 0 0 0 1px var(--blue-glow);
  430. }
  431. .data-inline-btn {
  432. flex-shrink: 0;
  433. min-width: 56px;
  434. justify-content: center;
  435. }
  436. .hotmail-card {
  437. margin-top: 10px;
  438. }
  439. .hotmail-actions-row .data-label {
  440. visibility: hidden;
  441. }
  442. .hotmail-import-row {
  443. align-items: flex-start;
  444. }
  445. .hotmail-import-box {
  446. flex: 1;
  447. display: flex;
  448. flex-direction: column;
  449. gap: 8px;
  450. }
  451. .hotmail-list-shell {
  452. border: 1px solid var(--border-subtle);
  453. border-radius: var(--radius-sm);
  454. background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  455. overflow-y: auto;
  456. overflow-x: hidden;
  457. padding: 2px;
  458. transition: max-height var(--transition), border-color var(--transition), box-shadow var(--transition);
  459. }
  460. .hotmail-list-shell.is-collapsed {
  461. max-height: 236px;
  462. }
  463. .hotmail-list-shell.is-expanded {
  464. max-height: 440px;
  465. }
  466. .hotmail-list-shell::-webkit-scrollbar {
  467. width: 8px;
  468. }
  469. .hotmail-list-shell::-webkit-scrollbar-track {
  470. background: transparent;
  471. }
  472. .hotmail-list-shell::-webkit-scrollbar-thumb {
  473. background: var(--border);
  474. border-radius: 999px;
  475. }
  476. .hotmail-list-shell::-webkit-scrollbar-thumb:hover {
  477. background: var(--text-muted);
  478. }
  479. .hotmail-accounts-list {
  480. display: flex;
  481. flex-direction: column;
  482. gap: 8px;
  483. padding-right: 4px;
  484. }
  485. .hotmail-account-item {
  486. border: 1px solid var(--border);
  487. background: var(--bg-base);
  488. border-radius: var(--radius-sm);
  489. padding: 10px;
  490. display: flex;
  491. flex-direction: column;
  492. gap: 8px;
  493. }
  494. .hotmail-account-item.is-current {
  495. border-color: var(--blue);
  496. box-shadow: 0 0 0 1px var(--blue-glow);
  497. }
  498. .hotmail-account-top {
  499. display: flex;
  500. align-items: center;
  501. justify-content: space-between;
  502. gap: 8px;
  503. }
  504. .hotmail-account-title-row {
  505. min-width: 0;
  506. display: flex;
  507. align-items: center;
  508. gap: 6px;
  509. }
  510. .hotmail-account-email {
  511. font-weight: 600;
  512. color: var(--text-primary);
  513. word-break: break-all;
  514. }
  515. .hotmail-copy-btn {
  516. width: 24px;
  517. height: 24px;
  518. flex: 0 0 auto;
  519. display: inline-flex;
  520. align-items: center;
  521. justify-content: center;
  522. border: none;
  523. border-radius: 999px;
  524. background: transparent;
  525. color: var(--text-muted);
  526. cursor: pointer;
  527. transition: background var(--transition), color var(--transition), transform var(--transition);
  528. }
  529. .hotmail-copy-btn:hover {
  530. background: var(--bg-hover);
  531. color: var(--text-primary);
  532. }
  533. .hotmail-copy-btn:active {
  534. transform: scale(0.96);
  535. }
  536. .hotmail-status-chip {
  537. padding: 2px 8px;
  538. border-radius: 999px;
  539. font-size: 11px;
  540. font-weight: 700;
  541. text-transform: uppercase;
  542. letter-spacing: 0.02em;
  543. }
  544. .hotmail-status-chip.status-authorized {
  545. background: var(--green-soft);
  546. color: var(--green);
  547. }
  548. .hotmail-status-chip.status-used {
  549. background: var(--orange-soft);
  550. color: var(--orange);
  551. }
  552. .hotmail-status-chip.status-disabled {
  553. background: var(--bg-surface);
  554. color: var(--text-secondary);
  555. }
  556. .hotmail-status-chip.status-pending {
  557. background: var(--orange-soft);
  558. color: var(--orange);
  559. }
  560. .hotmail-status-chip.status-error {
  561. background: var(--red-soft);
  562. color: var(--red);
  563. }
  564. .hotmail-account-meta {
  565. display: grid;
  566. grid-template-columns: repeat(2, minmax(0, 1fr));
  567. gap: 6px 10px;
  568. color: var(--text-secondary);
  569. font-size: 12px;
  570. }
  571. .hotmail-account-error {
  572. font-size: 12px;
  573. color: var(--red);
  574. word-break: break-word;
  575. }
  576. .hotmail-account-actions {
  577. display: flex;
  578. flex-wrap: wrap;
  579. gap: 6px;
  580. }
  581. .hotmail-empty {
  582. color: var(--text-muted);
  583. font-size: 12px;
  584. border: 1px dashed var(--border);
  585. border-radius: var(--radius-sm);
  586. padding: 10px;
  587. text-align: center;
  588. }
  589. .data-select {
  590. flex: 1;
  591. padding: 7px 10px;
  592. background: var(--bg-base);
  593. border: 1px solid var(--border);
  594. border-radius: var(--radius-sm);
  595. color: var(--text-primary);
  596. font-family: inherit;
  597. font-size: 13px;
  598. outline: none;
  599. cursor: pointer;
  600. transition: border-color var(--transition);
  601. min-width: 0;
  602. }
  603. .data-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  604. [data-theme="dark"] .data-select { color-scheme: dark; }
  605. .data-check {
  606. display: flex;
  607. align-items: flex-start;
  608. gap: 8px;
  609. flex: 1;
  610. min-width: 0;
  611. font-size: 12px;
  612. line-height: 1.5;
  613. color: var(--text-secondary);
  614. cursor: pointer;
  615. }
  616. .data-check input[type="checkbox"] {
  617. margin-top: 2px;
  618. accent-color: var(--blue);
  619. cursor: pointer;
  620. flex-shrink: 0;
  621. }
  622. .fallback-inline {
  623. justify-content: space-between;
  624. }
  625. .fallback-thread-interval {
  626. display: flex;
  627. align-items: center;
  628. gap: 12px;
  629. margin-left: auto;
  630. }
  631. .toggle-switch {
  632. position: relative;
  633. display: inline-flex;
  634. align-items: center;
  635. flex: 0 0 auto;
  636. cursor: pointer;
  637. }
  638. .toggle-switch > span:not(.toggle-switch-track) {
  639. display: none;
  640. }
  641. .toggle-switch input {
  642. position: absolute;
  643. opacity: 0;
  644. width: 1px;
  645. height: 1px;
  646. pointer-events: none;
  647. }
  648. .toggle-switch-track {
  649. width: 38px;
  650. height: 22px;
  651. border-radius: 999px;
  652. border: 1px solid var(--border);
  653. background: var(--bg-elevated);
  654. display: inline-flex;
  655. align-items: center;
  656. padding: 2px;
  657. transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  658. }
  659. .toggle-switch-thumb {
  660. width: 16px;
  661. height: 16px;
  662. border-radius: 50%;
  663. background: var(--bg-base);
  664. box-shadow: var(--shadow-sm);
  665. transition: transform var(--transition), background var(--transition);
  666. }
  667. .toggle-switch input:checked + .toggle-switch-track {
  668. background: var(--blue-soft);
  669. border-color: var(--blue);
  670. }
  671. .toggle-switch input:checked + .toggle-switch-track .toggle-switch-thumb {
  672. transform: translateX(16px);
  673. background: var(--blue);
  674. }
  675. .toggle-switch input:disabled + .toggle-switch-track {
  676. opacity: 0.55;
  677. }
  678. .auto-delay-inline {
  679. justify-content: space-between;
  680. gap: 12px;
  681. flex-wrap: nowrap;
  682. }
  683. .auto-delay-side {
  684. display: flex;
  685. align-items: center;
  686. gap: 12px;
  687. flex: 0 1 auto;
  688. min-width: 0;
  689. }
  690. .auto-delay-side-right {
  691. margin-left: auto;
  692. justify-content: flex-end;
  693. }
  694. .auto-delay-check {
  695. flex: 0 0 auto;
  696. align-items: center;
  697. }
  698. .auto-delay-check span {
  699. white-space: nowrap;
  700. }
  701. .auto-delay-caption {
  702. font-size: 12px;
  703. font-weight: 600;
  704. color: var(--text-muted);
  705. flex: 0 0 auto;
  706. white-space: nowrap;
  707. }
  708. .auto-delay-controls {
  709. display: flex;
  710. align-items: center;
  711. gap: 8px;
  712. flex-shrink: 0;
  713. }
  714. .auto-delay-input {
  715. width: 72px;
  716. flex: 0 0 auto;
  717. text-align: center;
  718. }
  719. .data-unit {
  720. font-size: 12px;
  721. font-weight: 600;
  722. color: var(--text-muted);
  723. flex-shrink: 0;
  724. }
  725. /* Status Bar */
  726. .status-bar {
  727. display: flex;
  728. align-items: center;
  729. gap: 8px;
  730. margin-top: 8px;
  731. padding: 8px 12px;
  732. background: var(--bg-surface);
  733. border: 1px solid var(--border);
  734. border-radius: var(--radius-sm);
  735. font-size: 13px;
  736. font-weight: 500;
  737. color: var(--text-secondary);
  738. box-shadow: var(--shadow-sm);
  739. }
  740. .status-dot {
  741. width: 8px;
  742. height: 8px;
  743. border-radius: 50%;
  744. background: var(--text-muted);
  745. flex-shrink: 0;
  746. transition: background var(--transition);
  747. }
  748. .status-bar.running .status-dot {
  749. background: var(--orange);
  750. animation: pulse 1.5s ease-in-out infinite;
  751. }
  752. .status-bar.running { color: var(--orange); }
  753. .status-bar.completed .status-dot { background: var(--green); }
  754. .status-bar.completed { color: var(--green); }
  755. .status-bar.failed .status-dot { background: var(--red); }
  756. .status-bar.failed { color: var(--red); }
  757. .status-bar.stopped .status-dot { background: var(--cyan); }
  758. .status-bar.stopped { color: var(--cyan); }
  759. .status-bar.paused .status-dot {
  760. background: var(--orange);
  761. animation: pulse 1.5s ease-in-out infinite;
  762. }
  763. .status-bar.paused { color: var(--orange); }
  764. .status-bar.scheduled .status-dot {
  765. background: var(--blue);
  766. animation: pulse 1.5s ease-in-out infinite;
  767. }
  768. .status-bar.scheduled { color: var(--blue); }
  769. @keyframes pulse {
  770. 0%, 100% { opacity: 1; transform: scale(1); }
  771. 50% { opacity: 0.4; transform: scale(0.85); }
  772. }
  773. /* Auto Continue Bar */
  774. .auto-continue-bar {
  775. margin-top: 8px;
  776. padding: 8px 10px;
  777. background: var(--orange-soft);
  778. border: 1px solid rgba(234, 88, 12, 0.2);
  779. border-radius: var(--radius-sm);
  780. display: flex;
  781. align-items: center;
  782. gap: 8px;
  783. }
  784. .auto-continue-bar svg { color: var(--orange); flex-shrink: 0; }
  785. .auto-hint { font-size: 13px; color: var(--orange); flex: 1; font-weight: 500; }
  786. .auto-schedule-bar {
  787. margin-top: 8px;
  788. padding: 10px;
  789. background: var(--blue-soft);
  790. border: 1px solid rgba(37, 99, 235, 0.2);
  791. border-radius: var(--radius-sm);
  792. display: flex;
  793. align-items: center;
  794. flex-wrap: wrap;
  795. gap: 10px;
  796. }
  797. .auto-schedule-bar svg {
  798. color: var(--blue);
  799. flex-shrink: 0;
  800. }
  801. .auto-schedule-copy {
  802. display: flex;
  803. flex-direction: column;
  804. gap: 2px;
  805. flex: 1;
  806. min-width: 0;
  807. }
  808. .auto-schedule-title {
  809. font-size: 13px;
  810. font-weight: 700;
  811. color: var(--blue);
  812. }
  813. .auto-schedule-meta {
  814. font-size: 12px;
  815. line-height: 1.5;
  816. color: var(--text-secondary);
  817. }
  818. .auto-schedule-actions {
  819. display: flex;
  820. align-items: center;
  821. flex-wrap: wrap;
  822. gap: 8px;
  823. flex-shrink: 0;
  824. }
  825. /* ============================================================
  826. Steps Section
  827. ============================================================ */
  828. #steps-section { margin-bottom: 14px; }
  829. .steps-header {
  830. display: flex;
  831. justify-content: space-between;
  832. align-items: center;
  833. margin-bottom: 8px;
  834. }
  835. .section-label {
  836. font-size: 11px;
  837. font-weight: 700;
  838. color: var(--text-muted);
  839. text-transform: uppercase;
  840. letter-spacing: 0.08em;
  841. }
  842. .steps-progress {
  843. font-family: 'JetBrains Mono', monospace;
  844. font-size: 11px;
  845. font-weight: 600;
  846. color: var(--text-muted);
  847. background: var(--bg-surface);
  848. padding: 2px 8px;
  849. border-radius: 10px;
  850. border: 1px solid var(--border);
  851. }
  852. .steps-list {
  853. display: flex;
  854. flex-direction: column;
  855. gap: 5px;
  856. }
  857. .step-row {
  858. display: flex;
  859. align-items: center;
  860. gap: 8px;
  861. padding: 1px 0;
  862. transition: opacity var(--transition);
  863. }
  864. /* Step Number Indicator */
  865. .step-indicator {
  866. width: 26px;
  867. height: 26px;
  868. border-radius: 50%;
  869. background: var(--bg-surface);
  870. border: 1.5px solid var(--border);
  871. display: flex;
  872. align-items: center;
  873. justify-content: center;
  874. flex-shrink: 0;
  875. transition: all var(--transition);
  876. }
  877. .step-num {
  878. font-size: 11px;
  879. font-weight: 700;
  880. color: var(--text-muted);
  881. transition: color var(--transition);
  882. }
  883. .step-row.running .step-indicator { border-color: var(--orange); background: var(--orange-soft); }
  884. .step-row.running .step-num { color: var(--orange); }
  885. .step-row.running .step-indicator { animation: pulse 1.5s ease-in-out infinite; }
  886. .step-row.completed .step-indicator { border-color: var(--green); background: var(--green-soft); }
  887. .step-row.completed .step-num { color: var(--green); }
  888. .step-row.failed .step-indicator { border-color: var(--red); background: var(--red-soft); }
  889. .step-row.failed .step-num { color: var(--red); }
  890. .step-row.stopped .step-indicator { border-color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  891. .step-row.stopped .step-num { color: var(--cyan); }
  892. .step-row.manual_completed .step-indicator,
  893. .step-row.skipped .step-indicator { border-color: var(--blue); background: var(--blue-soft); }
  894. .step-row.manual_completed .step-num,
  895. .step-row.skipped .step-num { color: var(--blue); }
  896. /* Step Button */
  897. .step-btn {
  898. flex: 1;
  899. padding: 8px 12px;
  900. font-family: inherit;
  901. font-size: 13px;
  902. font-weight: 500;
  903. color: var(--text-primary);
  904. background: var(--bg-surface);
  905. border: 1px solid var(--border);
  906. border-radius: var(--radius-sm);
  907. cursor: pointer;
  908. text-align: left;
  909. transition: all var(--transition);
  910. box-shadow: var(--shadow-sm);
  911. }
  912. .step-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--blue); }
  913. .step-btn:disabled { color: var(--text-muted); background: var(--bg-base); border-color: var(--border-subtle); cursor: not-allowed; opacity: 0.45; box-shadow: none; }
  914. .step-row.running .step-btn { border-color: var(--orange); color: var(--orange); }
  915. .step-row.completed .step-btn { border-color: var(--border-subtle); color: var(--text-secondary); opacity: 0.7; }
  916. .step-row.failed .step-btn { border-color: var(--red); color: var(--red); }
  917. .step-row.stopped .step-btn { border-color: var(--cyan); color: var(--cyan); }
  918. .step-row.manual_completed .step-btn,
  919. .step-row.skipped .step-btn { border-color: rgba(37, 99, 235, 0.25); color: var(--blue); opacity: 0.82; }
  920. .step-actions {
  921. display: flex;
  922. align-items: center;
  923. justify-content: flex-end;
  924. gap: 6px;
  925. width: 48px;
  926. flex-shrink: 0;
  927. }
  928. .step-manual-btn {
  929. width: 20px;
  930. height: 20px;
  931. padding: 0;
  932. display: inline-flex;
  933. align-items: center;
  934. justify-content: center;
  935. border: 1px solid var(--border);
  936. border-radius: 999px;
  937. background: var(--bg-surface);
  938. color: var(--text-muted);
  939. cursor: pointer;
  940. transition: all var(--transition);
  941. }
  942. .step-manual-btn:hover:not(:disabled) {
  943. border-color: var(--blue);
  944. color: var(--blue);
  945. background: var(--blue-soft);
  946. }
  947. .step-manual-btn:disabled {
  948. color: var(--text-muted);
  949. border-color: var(--border-subtle);
  950. background: var(--bg-base);
  951. cursor: not-allowed;
  952. opacity: 0.5;
  953. }
  954. .step-status {
  955. width: 20px;
  956. text-align: center;
  957. font-size: 14px;
  958. font-weight: 700;
  959. flex-shrink: 0;
  960. }
  961. .step-row.completed .step-status { color: var(--green); }
  962. .step-row.failed .step-status { color: var(--red); }
  963. .step-row.stopped .step-status { color: var(--cyan); }
  964. .step-row.manual_completed .step-status,
  965. .step-row.skipped .step-status { color: var(--blue); }
  966. /* ============================================================
  967. Log / Console Section
  968. ============================================================ */
  969. .log-header {
  970. display: flex;
  971. justify-content: space-between;
  972. align-items: center;
  973. margin-bottom: 6px;
  974. }
  975. #log-area {
  976. background: var(--bg-surface);
  977. border: 1px solid var(--border);
  978. border-radius: var(--radius-md);
  979. padding: 10px 12px;
  980. height: 220px;
  981. overflow-y: auto;
  982. font-family: 'JetBrains Mono', 'Consolas', monospace;
  983. font-size: 12px;
  984. line-height: 1.7;
  985. color: var(--text-secondary);
  986. box-shadow: var(--shadow-sm);
  987. }
  988. #log-area::-webkit-scrollbar { width: 5px; }
  989. #log-area::-webkit-scrollbar-track { background: transparent; }
  990. #log-area::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  991. #log-area::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
  992. .log-line { padding: 2.5px 0; }
  993. .log-line + .log-line { border-top: 1px solid var(--border-subtle); }
  994. .log-time { color: var(--text-muted); }
  995. .log-level { font-weight: 700; margin: 0 2px; }
  996. .log-level-info { color: var(--blue); }
  997. .log-level-ok { color: var(--green); }
  998. .log-level-warn { color: var(--orange); }
  999. .log-level-error { color: var(--red); }
  1000. .log-step-tag {
  1001. display: inline-block;
  1002. padding: 1px 5px;
  1003. border-radius: 3px;
  1004. font-weight: 700;
  1005. font-size: 11px;
  1006. margin-right: 3px;
  1007. }
  1008. .log-step-tag.step-1 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  1009. .log-step-tag.step-2 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  1010. .log-step-tag.step-3 { color: #b45309; background: rgba(180, 83, 9, 0.06); }
  1011. [data-theme="dark"] .log-step-tag.step-3 { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
  1012. .log-step-tag.step-4 { color: var(--orange); background: var(--orange-soft); }
  1013. .log-step-tag.step-5 { color: var(--green); background: var(--green-soft); }
  1014. .log-step-tag.step-6 { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
  1015. .log-step-tag.step-7 { color: var(--orange); background: var(--orange-soft); }
  1016. .log-step-tag.step-8 { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
  1017. .log-step-tag.step-9 { color: var(--green); background: var(--green-soft); }
  1018. .log-msg { color: var(--text-secondary); }
  1019. .log-line.log-ok .log-msg { color: var(--green); font-weight: 500; }
  1020. .log-line.log-error .log-msg { color: var(--red); font-weight: 500; }
  1021. .log-line.log-warn .log-msg { color: var(--orange); }
  1022. /* ============================================================
  1023. Animations
  1024. ============================================================ */
  1025. @keyframes fadeIn {
  1026. from { opacity: 0; transform: translateY(3px); }
  1027. to { opacity: 1; transform: translateY(0); }
  1028. }
  1029. .log-line { animation: fadeIn 120ms ease-out; }
  1030. /* ============================================================
  1031. Modal
  1032. ============================================================ */
  1033. .modal-overlay {
  1034. position: fixed;
  1035. inset: 0;
  1036. z-index: 1200;
  1037. display: flex;
  1038. align-items: center;
  1039. justify-content: center;
  1040. padding: 16px;
  1041. background: rgba(15, 17, 23, 0.32);
  1042. backdrop-filter: blur(2px);
  1043. }
  1044. .modal-overlay[hidden] {
  1045. display: none !important;
  1046. }
  1047. .modal-card {
  1048. width: min(100%, 320px);
  1049. background: var(--bg-base);
  1050. border: 1px solid var(--border);
  1051. border-radius: 12px;
  1052. box-shadow: var(--shadow-md), 0 18px 36px rgba(0, 0, 0, 0.18);
  1053. padding: 14px;
  1054. }
  1055. .modal-header {
  1056. display: flex;
  1057. align-items: center;
  1058. justify-content: space-between;
  1059. gap: 10px;
  1060. margin-bottom: 10px;
  1061. }
  1062. .modal-title {
  1063. font-size: 14px;
  1064. font-weight: 700;
  1065. color: var(--text-primary);
  1066. }
  1067. .modal-close {
  1068. width: 26px;
  1069. height: 26px;
  1070. border: none;
  1071. border-radius: 999px;
  1072. background: transparent;
  1073. color: var(--text-muted);
  1074. cursor: pointer;
  1075. font-size: 18px;
  1076. line-height: 1;
  1077. transition: all var(--transition);
  1078. }
  1079. .modal-close:hover {
  1080. background: var(--bg-hover);
  1081. color: var(--text-primary);
  1082. }
  1083. .modal-message {
  1084. font-size: 13px;
  1085. line-height: 1.55;
  1086. color: var(--text-secondary);
  1087. margin-bottom: 14px;
  1088. }
  1089. .modal-option-row {
  1090. margin-bottom: 14px;
  1091. }
  1092. .modal-option-label {
  1093. display: flex;
  1094. align-items: center;
  1095. gap: 8px;
  1096. font-size: 12px;
  1097. color: var(--text-secondary);
  1098. cursor: pointer;
  1099. }
  1100. .modal-option-label input[type="checkbox"] {
  1101. accent-color: var(--blue);
  1102. cursor: pointer;
  1103. }
  1104. .modal-actions {
  1105. display: flex;
  1106. justify-content: flex-end;
  1107. gap: 8px;
  1108. }
  1109. /* ============================================================
  1110. Toast Notifications
  1111. ============================================================ */
  1112. #toast-container {
  1113. position: fixed;
  1114. bottom: 12px;
  1115. left: 12px;
  1116. right: 12px;
  1117. z-index: 1000;
  1118. display: flex;
  1119. flex-direction: column;
  1120. gap: 6px;
  1121. pointer-events: none;
  1122. }
  1123. .toast {
  1124. display: flex;
  1125. align-items: center;
  1126. gap: 8px;
  1127. padding: 10px 14px;
  1128. border-radius: var(--radius-md);
  1129. font-size: 13px;
  1130. font-weight: 500;
  1131. box-shadow: var(--shadow-md), 0 4px 12px rgba(0,0,0,0.1);
  1132. pointer-events: auto;
  1133. animation: toastIn 250ms ease-out;
  1134. border: 1px solid;
  1135. }
  1136. .toast.toast-exit {
  1137. animation: toastOut 200ms ease-in forwards;
  1138. }
  1139. .toast-error {
  1140. background: var(--red-soft);
  1141. border-color: var(--red);
  1142. color: var(--red);
  1143. }
  1144. .toast-warn {
  1145. background: var(--orange-soft);
  1146. border-color: var(--orange);
  1147. color: var(--orange);
  1148. }
  1149. .toast-success {
  1150. background: var(--green-soft);
  1151. border-color: var(--green);
  1152. color: var(--green);
  1153. }
  1154. .toast-info {
  1155. background: var(--blue-soft);
  1156. border-color: var(--blue);
  1157. color: var(--blue);
  1158. }
  1159. .toast svg {
  1160. flex-shrink: 0;
  1161. }
  1162. .toast-msg {
  1163. flex: 1;
  1164. }
  1165. .toast-close {
  1166. background: none;
  1167. border: none;
  1168. color: inherit;
  1169. opacity: 0.6;
  1170. cursor: pointer;
  1171. padding: 2px;
  1172. font-size: 16px;
  1173. line-height: 1;
  1174. }
  1175. .toast-close:hover { opacity: 1; }
  1176. @keyframes toastIn {
  1177. from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  1178. to { opacity: 1; transform: translateY(0) scale(1); }
  1179. }
  1180. @keyframes toastOut {
  1181. from { opacity: 1; transform: translateY(0) scale(1); }
  1182. to { opacity: 0; transform: translateY(-10px) scale(0.96); }
  1183. }
  1184. @media (prefers-reduced-motion: reduce) {
  1185. *, *::before, *::after {
  1186. animation-duration: 0.01ms !important;
  1187. transition-duration: 0.01ms !important;
  1188. }
  1189. }