sidepanel.css 33 KB

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