workbench.css 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. * {
  2. box-sizing: border-box;
  3. }
  4. html,
  5. body {
  6. height: 100%;
  7. margin: 0;
  8. font-family: "Segoe UI", "PingFang SC", sans-serif;
  9. background:
  10. radial-gradient(circle at top left, rgba(68, 161, 124, 0.16), transparent 34%),
  11. linear-gradient(160deg, #edf5ef 0%, #dbe8df 100%);
  12. color: #163126;
  13. overflow: hidden;
  14. }
  15. .wb-shell {
  16. height: 100vh;
  17. display: grid;
  18. grid-template-rows: auto 1fr;
  19. }
  20. .wb-topbar {
  21. display: flex;
  22. align-items: center;
  23. justify-content: space-between;
  24. gap: 20px;
  25. padding: 18px 24px;
  26. background: rgba(248, 251, 247, 0.92);
  27. border-bottom: 1px solid rgba(22, 49, 38, 0.08);
  28. backdrop-filter: blur(14px);
  29. }
  30. .wb-topbar__eyebrow {
  31. font-size: 11px;
  32. font-weight: 800;
  33. letter-spacing: 0.24em;
  34. color: #6a8778;
  35. }
  36. .wb-topbar h1 {
  37. margin: 6px 0 8px;
  38. font-size: 30px;
  39. line-height: 1.1;
  40. }
  41. .wb-topbar__links {
  42. display: flex;
  43. flex-wrap: wrap;
  44. gap: 14px;
  45. align-items: center;
  46. }
  47. .wb-topbar__links a {
  48. color: #24523e;
  49. text-decoration: none;
  50. font-size: 13px;
  51. font-weight: 700;
  52. }
  53. .wb-topbar__status {
  54. display: flex;
  55. align-items: center;
  56. gap: 16px;
  57. }
  58. .wb-topbar__global {
  59. min-width: 220px;
  60. }
  61. .wb-topbar__field {
  62. margin-bottom: 0;
  63. }
  64. .wb-topbar__field span {
  65. font-size: 12px;
  66. font-weight: 700;
  67. letter-spacing: 0.06em;
  68. color: #5d786c;
  69. }
  70. .wb-topbar__field input {
  71. min-width: 220px;
  72. background: rgba(255, 255, 255, 0.92);
  73. }
  74. .wb-connection-bar {
  75. display: flex;
  76. flex-wrap: wrap;
  77. justify-content: flex-end;
  78. gap: 10px;
  79. }
  80. .wb-connection-pill {
  81. min-width: 112px;
  82. padding: 10px 14px;
  83. border-radius: 16px;
  84. background: rgba(235, 242, 236, 0.95);
  85. box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.06);
  86. }
  87. .wb-connection-pill__label {
  88. display: block;
  89. margin-bottom: 4px;
  90. font-size: 11px;
  91. font-weight: 700;
  92. letter-spacing: 0.08em;
  93. color: #6f8a7d;
  94. }
  95. .wb-connection-pill__value {
  96. display: block;
  97. font-size: 13px;
  98. color: #2b4338;
  99. }
  100. .wb-connection-pill__value.is-ok {
  101. color: #0a7a3d;
  102. }
  103. .wb-connection-pill__value.is-warn {
  104. color: #9a5b10;
  105. }
  106. .wb-layout {
  107. min-height: 0;
  108. display: grid;
  109. grid-template-columns: 380px 1fr 280px;
  110. gap: 18px;
  111. padding: 18px;
  112. }
  113. .wb-sidebar {
  114. min-height: 0;
  115. overflow-y: auto;
  116. padding-right: 4px;
  117. }
  118. .wb-rail {
  119. min-height: 0;
  120. overflow-y: auto;
  121. padding-left: 4px;
  122. }
  123. .wb-stage {
  124. position: relative;
  125. min-height: 0;
  126. overflow: hidden;
  127. border-radius: 28px;
  128. box-shadow: 0 28px 60px rgba(20, 41, 31, 0.18);
  129. }
  130. #map {
  131. width: 100%;
  132. height: 100%;
  133. }
  134. .wb-section,
  135. .wb-card {
  136. margin-bottom: 14px;
  137. border-radius: 22px;
  138. background: rgba(255, 255, 255, 0.92);
  139. border: 1px solid rgba(255, 255, 255, 0.7);
  140. box-shadow: 0 16px 40px rgba(25, 44, 34, 0.08);
  141. overflow: hidden;
  142. }
  143. .wb-section summary,
  144. .wb-card__title {
  145. list-style: none;
  146. cursor: pointer;
  147. padding: 18px 18px 16px;
  148. font-size: 14px;
  149. font-weight: 800;
  150. letter-spacing: 0.08em;
  151. color: #537062;
  152. }
  153. .wb-section summary::-webkit-details-marker {
  154. display: none;
  155. }
  156. .wb-section[open] summary {
  157. border-bottom: 1px solid rgba(22, 49, 38, 0.06);
  158. }
  159. .wb-section__body,
  160. .wb-card {
  161. padding: 0 18px 18px;
  162. }
  163. .wb-card__title {
  164. padding: 18px 18px 12px;
  165. margin: 0 -18px 6px;
  166. }
  167. .badge {
  168. display: inline-flex;
  169. align-items: center;
  170. min-height: 34px;
  171. padding: 0 14px;
  172. border-radius: 999px;
  173. font-size: 13px;
  174. font-weight: 700;
  175. }
  176. .badge--muted {
  177. background: #e5ece5;
  178. color: #4f6458;
  179. }
  180. .badge--ok {
  181. background: #d8f7e3;
  182. color: #0a7a3d;
  183. }
  184. .group__status,
  185. .hint {
  186. min-height: 18px;
  187. margin: 0 0 12px;
  188. font-size: 12px;
  189. line-height: 1.5;
  190. color: #5e786d;
  191. }
  192. .row {
  193. display: flex;
  194. gap: 10px;
  195. margin-bottom: 10px;
  196. }
  197. .btn {
  198. flex: 1;
  199. min-height: 42px;
  200. border: 0;
  201. border-radius: 14px;
  202. background: #ebf0ea;
  203. color: #193226;
  204. font-weight: 700;
  205. cursor: pointer;
  206. transition: transform 120ms ease, background 120ms ease, color 120ms ease, opacity 120ms ease;
  207. }
  208. .btn:hover {
  209. transform: translateY(-1px);
  210. }
  211. .btn--primary {
  212. background: #103f2f;
  213. color: #fff;
  214. }
  215. .btn--accent {
  216. background: #0ea5a4;
  217. color: #fff;
  218. }
  219. .btn.is-active {
  220. outline: 2px solid #ffb300;
  221. }
  222. .btn:disabled {
  223. opacity: 0.56;
  224. cursor: not-allowed;
  225. transform: none;
  226. }
  227. .field {
  228. display: flex;
  229. flex-direction: column;
  230. gap: 6px;
  231. margin-bottom: 10px;
  232. font-size: 13px;
  233. color: #557266;
  234. }
  235. .field input,
  236. .field select {
  237. min-height: 40px;
  238. border: 1px solid rgba(22, 49, 38, 0.12);
  239. border-radius: 12px;
  240. padding: 0 12px;
  241. font: inherit;
  242. background: rgba(249, 252, 249, 0.96);
  243. }
  244. .field--check {
  245. flex-direction: row;
  246. align-items: center;
  247. }
  248. .file-input-hidden {
  249. position: absolute;
  250. width: 1px;
  251. height: 1px;
  252. opacity: 0;
  253. pointer-events: none;
  254. }
  255. .stat {
  256. display: flex;
  257. justify-content: space-between;
  258. padding: 10px 0;
  259. border-bottom: 1px solid rgba(22, 49, 38, 0.06);
  260. }
  261. .stat:last-child {
  262. border-bottom: 0;
  263. }
  264. .stat span {
  265. color: #668073;
  266. font-size: 13px;
  267. }
  268. .stat strong {
  269. font-size: 14px;
  270. }
  271. .log {
  272. min-height: 180px;
  273. max-height: 300px;
  274. overflow-y: auto;
  275. padding: 12px 14px;
  276. border-radius: 16px;
  277. background: #f3f7f1;
  278. font-size: 12px;
  279. line-height: 1.6;
  280. color: #486257;
  281. white-space: pre-wrap;
  282. }
  283. .log--debug {
  284. max-height: 320px;
  285. background: #111917;
  286. color: #d6f3df;
  287. font-family: Consolas, "SFMono-Regular", monospace;
  288. }
  289. .log--floating {
  290. min-height: 340px;
  291. max-height: min(54vh, 560px);
  292. font-size: 13px;
  293. }
  294. .jump-list {
  295. display: flex;
  296. flex-wrap: wrap;
  297. gap: 8px;
  298. margin-top: 12px;
  299. }
  300. .jump-chip {
  301. min-height: 32px;
  302. padding: 0 12px;
  303. border: 0;
  304. border-radius: 999px;
  305. background: #eef6ea;
  306. color: #244132;
  307. font-size: 12px;
  308. font-weight: 700;
  309. cursor: pointer;
  310. }
  311. .jump-chip--start {
  312. background: #fff0c9;
  313. }
  314. .jump-chip--finish {
  315. background: #ffe2b8;
  316. }
  317. .floating-debug-log {
  318. position: absolute;
  319. right: 18px;
  320. bottom: 18px;
  321. z-index: 600;
  322. width: min(620px, calc(100vw - 500px));
  323. min-width: 440px;
  324. max-width: 720px;
  325. padding: 14px;
  326. border-radius: 22px;
  327. background: rgba(255, 255, 255, 0.94);
  328. border: 1px solid rgba(255, 255, 255, 0.52);
  329. box-shadow: 0 22px 60px rgba(17, 33, 26, 0.22);
  330. backdrop-filter: blur(16px);
  331. transition: width 160ms ease, min-width 160ms ease, max-width 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  332. }
  333. .floating-debug-log.is-minimized {
  334. width: 236px;
  335. min-width: 236px;
  336. max-width: 236px;
  337. padding: 12px 14px;
  338. border-radius: 18px;
  339. box-shadow: 0 16px 36px rgba(17, 33, 26, 0.18);
  340. transform: translateY(4px);
  341. }
  342. .floating-debug-log.is-minimized .log--floating,
  343. .floating-debug-log.is-minimized .floating-debug-log__filter,
  344. .floating-debug-log.is-minimized .floating-debug-log__clear {
  345. display: none;
  346. }
  347. .floating-debug-log.is-minimized .floating-debug-log__header {
  348. margin-bottom: 0;
  349. }
  350. .floating-debug-log.is-minimized .floating-debug-log__actions {
  351. gap: 0;
  352. }
  353. .floating-debug-log__header {
  354. display: flex;
  355. align-items: center;
  356. justify-content: space-between;
  357. gap: 12px;
  358. margin-bottom: 10px;
  359. }
  360. .floating-debug-log__title-wrap {
  361. display: flex;
  362. flex-direction: column;
  363. gap: 4px;
  364. }
  365. .floating-debug-log__title {
  366. font-size: 14px;
  367. font-weight: 800;
  368. letter-spacing: 0.08em;
  369. color: #4a6a5e;
  370. }
  371. .floating-debug-log__meta {
  372. font-size: 12px;
  373. color: #6a8278;
  374. }
  375. .floating-debug-log__clear {
  376. min-height: 30px;
  377. padding: 0 12px;
  378. border: 0;
  379. border-radius: 999px;
  380. background: rgba(17, 33, 26, 0.1);
  381. color: #244132;
  382. font-size: 12px;
  383. font-weight: 700;
  384. cursor: pointer;
  385. }
  386. .floating-debug-log__toggle {
  387. min-height: 30px;
  388. padding: 0 12px;
  389. border: 0;
  390. border-radius: 999px;
  391. background: rgba(17, 33, 26, 0.1);
  392. color: #244132;
  393. font-size: 12px;
  394. font-weight: 700;
  395. cursor: pointer;
  396. }
  397. .floating-debug-log__actions {
  398. display: flex;
  399. align-items: center;
  400. gap: 10px;
  401. }
  402. .floating-debug-log__filter {
  403. display: flex;
  404. align-items: center;
  405. gap: 8px;
  406. font-size: 12px;
  407. color: #557266;
  408. }
  409. .floating-debug-log__filter select {
  410. min-height: 30px;
  411. border: 1px solid rgba(22, 49, 38, 0.12);
  412. border-radius: 10px;
  413. padding: 0 10px;
  414. background: rgba(249, 252, 249, 0.96);
  415. font: inherit;
  416. }
  417. .leaflet-container {
  418. background: #dfeadb;
  419. }
  420. .course-marker {
  421. display: flex;
  422. align-items: center;
  423. justify-content: center;
  424. }
  425. .course-marker__control {
  426. width: 34px;
  427. height: 34px;
  428. border-radius: 999px;
  429. border: 3px solid #cc0077;
  430. color: #cc0077;
  431. background: rgba(255, 255, 255, 0.9);
  432. font-size: 16px;
  433. font-weight: 800;
  434. line-height: 1;
  435. }
  436. .course-marker__start {
  437. width: 0;
  438. height: 0;
  439. border-left: 16px solid transparent;
  440. border-right: 16px solid transparent;
  441. border-bottom: 28px solid #cc0077;
  442. filter: drop-shadow(0 3px 10px rgba(22, 49, 38, 0.22));
  443. }
  444. .course-marker__finish {
  445. position: relative;
  446. width: 36px;
  447. height: 36px;
  448. border-radius: 999px;
  449. border: 4px solid #cc0077;
  450. background: rgba(255, 255, 255, 0.76);
  451. }
  452. .course-marker__finish::after {
  453. content: "";
  454. position: absolute;
  455. inset: 6px;
  456. border-radius: 999px;
  457. border: 3px solid #cc0077;
  458. }
  459. @media (max-width: 1380px) {
  460. .wb-layout {
  461. grid-template-columns: 340px 1fr 250px;
  462. }
  463. .floating-debug-log {
  464. width: min(520px, calc(100vw - 440px));
  465. }
  466. }
  467. @media (max-width: 1120px) {
  468. .wb-layout {
  469. grid-template-columns: 1fr;
  470. grid-template-rows: auto minmax(420px, 1fr) auto;
  471. }
  472. .wb-sidebar,
  473. .wb-rail {
  474. max-height: 32vh;
  475. }
  476. .floating-debug-log {
  477. width: min(420px, calc(100vw - 48px));
  478. min-width: 0;
  479. }
  480. .wb-topbar {
  481. flex-direction: column;
  482. align-items: flex-start;
  483. }
  484. .wb-topbar__status {
  485. width: 100%;
  486. flex-direction: column;
  487. align-items: flex-start;
  488. }
  489. .wb-topbar__global,
  490. .wb-topbar__field input {
  491. width: 100%;
  492. min-width: 0;
  493. }
  494. }