realtime-test.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  1. :root {
  2. color-scheme:light;
  3. --ink:#172b35;
  4. --muted:#71818b;
  5. --line:#e4e9ed;
  6. --bg:#f4f7f8;
  7. --green:#087a69;
  8. --green-soft:#e6f5ef;
  9. --red:#b53f42;
  10. --amber:#92671a;
  11. font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  12. font-size:14px;
  13. }
  14. * {
  15. box-sizing:border-box;
  16. }
  17. body {
  18. margin:0;
  19. background:var(--bg);
  20. color:var(--ink);
  21. }
  22. button,input {
  23. font:inherit;
  24. }
  25. button {
  26. cursor:pointer;
  27. }
  28. button:disabled {
  29. cursor:not-allowed;
  30. opacity:.45;
  31. }
  32. button,input,summary {
  33. touch-action:manipulation;
  34. }
  35. button:focus-visible,input:focus-visible,summary:focus-visible {
  36. outline:3px solid #55baa5;
  37. outline-offset:3px;
  38. }
  39. input {
  40. width:100%;
  41. height:45px;
  42. border:1px solid #d9e2e7;
  43. border-radius:8px;
  44. padding:0 12px;
  45. color:var(--ink);
  46. background:#fff;
  47. transition:border-color .15s;
  48. }
  49. input:focus {
  50. border-color:var(--green);
  51. outline:none;
  52. box-shadow:0 0 0 3px #087a6910;
  53. }
  54. input::placeholder {
  55. color:#a0acb4;
  56. }
  57. label {
  58. display:block;
  59. font-weight:600;
  60. font-size:13px;
  61. margin:0 0 8px;
  62. }
  63. pre {
  64. font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;
  65. white-space:pre-wrap;
  66. overflow-wrap:anywhere;
  67. }
  68. h1,h2,p {
  69. margin:0;
  70. }
  71. h1 {
  72. font-size:32px;
  73. font-weight:650;
  74. letter-spacing:-1px;
  75. margin:17px 0 10px;
  76. }
  77. h2 {
  78. font-size:16px;
  79. font-weight:650;
  80. }
  81. .page {
  82. max-width:1264px;
  83. margin:auto;
  84. padding:38px 32px 24px;
  85. }
  86. .page-header {
  87. display:flex;
  88. justify-content:space-between;
  89. align-items:center;
  90. margin-bottom:28px;
  91. }
  92. .eyebrow {
  93. display:flex;
  94. align-items:center;
  95. gap:10px;
  96. font:600 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  97. letter-spacing:1.5px;
  98. color:#647d83;
  99. }
  100. .brand-mark {
  101. display:grid;
  102. place-items:center;
  103. height:25px;
  104. width:25px;
  105. background:var(--green);
  106. color:white;
  107. border-radius:7px;
  108. font-size:20px;
  109. letter-spacing:0;
  110. }
  111. .eyebrow-divider {
  112. color:#b5c3c7;
  113. margin:0 3px;
  114. }
  115. .intro {
  116. font-size:14px;
  117. color:var(--muted);
  118. line-height:1.65;
  119. }
  120. .pill {
  121. display:flex;
  122. align-items:center;
  123. gap:8px;
  124. border:1px solid #dce5e8;
  125. background:#fff;
  126. border-radius:24px;
  127. padding:10px 15px;
  128. font-size:12px;
  129. font-weight:600;
  130. }
  131. .dot {
  132. display:inline-block;
  133. width:7px;
  134. height:7px;
  135. border-radius:50%;
  136. background:#9daeb5;
  137. flex:none;
  138. }
  139. .green,.pill[data-status=connected] .dot {
  140. background:var(--green);
  141. }
  142. .pill[data-status=connected] {
  143. border-color:#b9ded0;
  144. color:var(--green);
  145. background:#f1faf5;
  146. }
  147. .pill[data-status=connecting] .dot {
  148. background:#bc8c35;
  149. animation:pulse 1.3s infinite;
  150. }
  151. .pill[data-status=failed],.pill[data-status=unavailable] {
  152. color:var(--red);
  153. border-color:#e7c5c5;
  154. }
  155. .workspace {
  156. display:grid;
  157. grid-template-columns:360px minmax(0,1fr);
  158. gap:22px;
  159. align-items:start;
  160. }
  161. .card {
  162. background:#fff;
  163. border:1px solid var(--line);
  164. border-radius:13px;
  165. box-shadow:0 3px 12px #16303c03;
  166. padding:24px;
  167. }
  168. .section-heading {
  169. display:flex;
  170. align-items:center;
  171. gap:9px;
  172. margin-bottom:22px;
  173. }
  174. .section-heading .small {
  175. margin-left:auto;
  176. }
  177. .section-number {
  178. color:#93a3aa;
  179. font:12px ui-monospace,SFMono-Regular,Consolas,monospace;
  180. }
  181. .muted {
  182. color:var(--muted);
  183. }
  184. .small {
  185. font-size:12px;
  186. }
  187. .field-help {
  188. font-size:12px;
  189. color:var(--muted);
  190. line-height:1.7;
  191. margin:8px 0 20px;
  192. }
  193. .token-field {
  194. position:relative;
  195. }
  196. .token-field input {
  197. padding-right:56px;
  198. }
  199. .icon-button {
  200. border:0;
  201. background:none;
  202. position:absolute;
  203. right:7px;
  204. top:8px;
  205. padding:6px;
  206. color:var(--green);
  207. font-size:12px;
  208. }
  209. .button {
  210. border:1px solid transparent;
  211. border-radius:8px;
  212. padding:11px 15px;
  213. display:inline-flex;
  214. justify-content:center;
  215. align-items:center;
  216. gap:8px;
  217. white-space:nowrap;
  218. font-weight:600;
  219. font-size:13px;
  220. min-height:42px;
  221. }
  222. .primary {
  223. background:var(--green);
  224. color:white;
  225. }
  226. .primary:hover:not(:disabled) {
  227. background:#066758;
  228. }
  229. .secondary {
  230. background:#fff;
  231. border-color:#dce4e8;
  232. color:#3c5661;
  233. }
  234. .secondary:hover:not(:disabled) {
  235. background:#f4f7f8;
  236. }
  237. .full-width {
  238. width:100%;
  239. justify-content:space-between;
  240. }
  241. .connection-actions {
  242. display:grid;
  243. grid-template-columns:1fr 70px;
  244. gap:9px;
  245. margin-top:22px;
  246. }
  247. .small-note {
  248. font-size:11px;
  249. line-height:1.8;
  250. color:#8a999f;
  251. margin-top:15px;
  252. }
  253. .right-column {
  254. display:grid;
  255. gap:22px;
  256. }
  257. .checks {
  258. list-style:none;
  259. padding:0;
  260. margin:0;
  261. }
  262. .checks li {
  263. display:flex;
  264. align-items:center;
  265. gap:13px;
  266. padding:14px 0;
  267. border-bottom:1px solid #f0f3f5;
  268. }
  269. .checks li:first-child {
  270. padding-top:0;
  271. }
  272. .checks li:last-child {
  273. border-bottom:0;
  274. padding-bottom:0;
  275. }
  276. .check-icon {
  277. width:30px;
  278. height:30px;
  279. border:1px solid #dfe7eb;
  280. color:#92a3ab;
  281. border-radius:50%;
  282. display:grid;
  283. place-items:center;
  284. font:12px ui-monospace,SFMono-Regular,Consolas,monospace;
  285. flex:none;
  286. }
  287. .checks strong {
  288. display:block;
  289. font-size:13px;
  290. font-weight:600;
  291. margin-bottom:5px;
  292. }
  293. .checks li div span {
  294. font-size:12px;
  295. color:#8999a0;
  296. line-height:1.6;
  297. display:block;
  298. }
  299. .check-state {
  300. margin-left:auto;
  301. color:#9babb2;
  302. font-size:11px;
  303. white-space:nowrap;
  304. }
  305. .checks [data-status=ok] .check-icon {
  306. color:var(--green);
  307. background:var(--green-soft);
  308. border-color:transparent;
  309. }
  310. .checks [data-status=ok] .check-state {
  311. color:var(--green);
  312. }
  313. .checks [data-status=loading] .check-icon {
  314. color:var(--amber);
  315. background:#fff8e7;
  316. border-color:transparent;
  317. }
  318. .checks [data-status=error] .check-icon {
  319. color:var(--red);
  320. background:#fceeee;
  321. border-color:transparent;
  322. }
  323. .checks [data-status=error] .check-state {
  324. color:var(--red);
  325. }
  326. .checks [data-status=warning] .check-state {
  327. color:var(--amber);
  328. }
  329. .verdict {
  330. font-size:12px;
  331. color:#758e92;
  332. line-height:1.8;
  333. background:#f4f9f8;
  334. border-radius:8px;
  335. padding:12px 14px;
  336. margin-top:21px;
  337. }
  338. .verdict[data-status=ok] {
  339. color:#146b56;
  340. background:#eaf6ee;
  341. }
  342. .config-summary {
  343. margin-top:22px;
  344. padding-top:19px;
  345. border-top:1px solid var(--line);
  346. }
  347. .summary-topline {
  348. display:flex;
  349. align-items:center;
  350. gap:7px;
  351. font-size:12px;
  352. color:var(--green);
  353. font-weight:600;
  354. }
  355. .config-summary dl {
  356. margin:13px 0;
  357. }
  358. .config-summary dl div {
  359. display:flex;
  360. gap:10px;
  361. align-items:baseline;
  362. font-size:11px;
  363. margin-top:11px;
  364. }
  365. .config-summary dt {
  366. flex:none;
  367. color:var(--muted);
  368. width:65px;
  369. }
  370. .config-summary dd {
  371. margin:0;
  372. color:#38505b;
  373. overflow-wrap:anywhere;
  374. font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  375. }
  376. .config-summary pre {
  377. background:#f5f8f9;
  378. padding:12px;
  379. border-radius:6px;
  380. max-height:250px;
  381. overflow:auto;
  382. margin-bottom:0;
  383. }
  384. summary {
  385. font-size:12px;
  386. color:var(--muted);
  387. cursor:pointer;
  388. }
  389. .channel-toolbar,.event-toolbar {
  390. display:flex;
  391. align-items:center;
  392. justify-content:space-between;
  393. gap:12px;
  394. margin-bottom:15px;
  395. }
  396. .channel-toolbar>div {
  397. display:flex;
  398. align-items:center;
  399. gap:8px;
  400. }
  401. .text-button {
  402. border:0;
  403. background:none;
  404. color:var(--green);
  405. padding:4px 0;
  406. font-size:12px;
  407. }
  408. .text-button:hover:not(:disabled) {
  409. text-decoration:underline;
  410. }
  411. .compact {
  412. min-height:32px;
  413. padding:6px 10px;
  414. font-size:12px;
  415. }
  416. .channel-list {
  417. display:grid;
  418. grid-template-columns:repeat(2,minmax(0,1fr));
  419. gap:8px;
  420. max-height:236px;
  421. overflow:auto;
  422. padding:1px;
  423. }
  424. .channel {
  425. display:flex;
  426. align-items:center;
  427. gap:9px;
  428. border:1px solid #e5ecef;
  429. border-radius:7px;
  430. padding:10px;
  431. min-width:0;
  432. margin:0;
  433. font-size:12px;
  434. font-weight:400;
  435. cursor:pointer;
  436. }
  437. .channel:has(input:checked) {
  438. background:#f4faf7;
  439. border-color:#d6e8df;
  440. }
  441. .channel input {
  442. width:14px;
  443. height:14px;
  444. accent-color:var(--green);
  445. flex:none;
  446. margin:0;
  447. }
  448. .channel .channel-name {
  449. overflow:hidden;
  450. text-overflow:ellipsis;
  451. white-space:nowrap;
  452. }
  453. .channel-status {
  454. margin-left:auto;
  455. font-size:10px;
  456. color:#96a7ae;
  457. white-space:nowrap;
  458. }
  459. .channel-status[data-status=subscribed] {
  460. color:var(--green);
  461. }
  462. .channel-status[data-status=denied],.channel-status[data-status=error] {
  463. color:var(--red);
  464. }
  465. .replay-controls {
  466. display:flex;
  467. align-items:end;
  468. gap:10px;
  469. border-top:1px solid #eef2f4;
  470. padding-top:15px;
  471. margin-top:16px;
  472. }
  473. .replay-controls>div {
  474. flex:1;
  475. }
  476. .replay-controls input {
  477. height:38px;
  478. font-size:12px;
  479. }
  480. .replay-controls label {
  481. font-size:12px;
  482. }
  483. .optional {
  484. font-weight:400;
  485. color:#a0adb4;
  486. font-size:11px;
  487. margin-left:6px;
  488. }
  489. .replay-controls button {
  490. min-height:38px;
  491. }
  492. .channels-card .field-help {
  493. margin-bottom:0;
  494. }
  495. .events-card {
  496. margin-top:22px;
  497. padding-bottom:12px;
  498. }
  499. .event-totals {
  500. margin-left:auto;
  501. display:flex;
  502. gap:20px;
  503. color:var(--muted);
  504. font-size:12px;
  505. }
  506. .event-totals strong {
  507. font-variant-numeric:tabular-nums;
  508. font-size:16px;
  509. color:#304c57;
  510. font-weight:600;
  511. margin-left:5px;
  512. }
  513. .segmented {
  514. display:flex;
  515. gap:2px;
  516. background:#f1f5f6;
  517. padding:3px;
  518. border-radius:7px;
  519. }
  520. .segmented button {
  521. border:0;
  522. border-radius:5px;
  523. background:transparent;
  524. color:#83959e;
  525. padding:6px 16px;
  526. font-size:12px;
  527. }
  528. .segmented [aria-pressed=true] {
  529. color:#1f6257;
  530. background:#fff;
  531. box-shadow:0 1px 4px #142e3810;
  532. }
  533. .table-scroll {
  534. overflow-x:auto;
  535. }
  536. table {
  537. border-collapse:collapse;
  538. width:100%;
  539. text-align:left;
  540. font-size:12px;
  541. }
  542. th {
  543. color:#899aa2;
  544. font-weight:400;
  545. font-size:11px;
  546. padding:11px 10px;
  547. background:#f8fafb;
  548. border-bottom:1px solid var(--line);
  549. white-space:nowrap;
  550. }
  551. th:first-child {
  552. border-radius:7px 0 0;
  553. }
  554. th:last-child {
  555. border-radius:0 7px 0 0;
  556. }
  557. td {
  558. padding:13px 10px;
  559. border-bottom:1px solid #edf2f4;
  560. white-space:nowrap;
  561. }
  562. td .subline {
  563. display:block;
  564. color:#91a0a6;
  565. margin-top:5px;
  566. font-size:11px;
  567. }
  568. td.seq {
  569. font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  570. }
  571. .tag {
  572. display:inline-block;
  573. padding:3px 7px;
  574. border-radius:4px;
  575. background:#e8f5ee;
  576. color:#228160;
  577. font-size:10px;
  578. }
  579. .tag.replay {
  580. background:#eef1fa;
  581. color:#6578ad;
  582. }
  583. .tag.duplicate {
  584. background:#fff6e5;
  585. color:#a17a2e;
  586. margin-left:4px;
  587. }
  588. tr.selected td {
  589. background:#f5faf8;
  590. }
  591. .empty {
  592. padding:35px 16px;
  593. display:flex;
  594. flex-direction:column;
  595. align-items:center;
  596. gap:10px;
  597. color:#97a5ad;
  598. font-size:12px;
  599. line-height:1.7;
  600. text-align:center;
  601. }
  602. .empty strong {
  603. color:#758991;
  604. font-size:13px;
  605. font-weight:500;
  606. }
  607. .empty-signal {
  608. font-size:34px;
  609. line-height:1;
  610. color:#b1c9c4;
  611. }
  612. .compact-empty {
  613. grid-column:1/-1;
  614. padding:24px;
  615. font-size:12px;
  616. }
  617. .event-detail {
  618. margin:16px 0 5px;
  619. border:1px solid var(--line);
  620. border-radius:8px;
  621. padding:14px;
  622. background:#f8fafb;
  623. }
  624. .event-detail summary {
  625. color:#34525d;
  626. }
  627. #detail-meta {
  628. font-size:11px;
  629. color:#8b9ba2;
  630. margin-left:10px;
  631. }
  632. .event-detail pre {
  633. max-height:350px;
  634. overflow:auto;
  635. margin-bottom:0;
  636. }
  637. .logs-card {
  638. margin-top:22px;
  639. padding-bottom:14px;
  640. }
  641. .logs-card .section-heading {
  642. margin-bottom:12px;
  643. }
  644. .logs-card .text-button {
  645. margin-left:auto;
  646. }
  647. .logs-card h2 {
  648. font-size:14px;
  649. }
  650. #logs {
  651. margin:0;
  652. padding:0;
  653. list-style:none;
  654. max-height:230px;
  655. overflow:auto;
  656. scrollbar-width:thin;
  657. }
  658. .log-entry {
  659. padding:9px 0;
  660. border-bottom:1px solid #f0f3f5;
  661. display:flex;
  662. align-items:baseline;
  663. gap:14px;
  664. font-size:12px;
  665. line-height:1.7;
  666. overflow-wrap:anywhere;
  667. }
  668. .log-entry:last-child {
  669. border:0;
  670. }
  671. .log-entry time {
  672. font:11px ui-monospace,SFMono-Regular,Consolas,monospace;
  673. color:#9cabb1;
  674. flex:none;
  675. width:66px;
  676. }
  677. .log-entry[data-level=error]>span {
  678. color:var(--red);
  679. }
  680. .log-entry[data-level=warning]>span {
  681. color:var(--amber);
  682. }
  683. .log-entry[data-level=success]>span {
  684. color:#3d8069;
  685. }
  686. .notice {
  687. border:1px solid #edcece;
  688. border-radius:9px;
  689. padding:13px 16px;
  690. font-size:13px;
  691. line-height:1.7;
  692. margin-bottom:20px;
  693. }
  694. .notice.error {
  695. background:#fff3f1;
  696. color:#a84541;
  697. }
  698. footer {
  699. display:flex;
  700. justify-content:space-between;
  701. align-items:center;
  702. gap:15px;
  703. color:#9ba9b0;
  704. font-size:11px;
  705. padding:24px 2px 0;
  706. }
  707. footer>span:first-child {
  708. display:flex;
  709. gap:7px;
  710. align-items:center;
  711. }
  712. .sr-only {
  713. position:absolute;
  714. width:1px;
  715. height:1px;
  716. overflow:hidden;
  717. clip-path:inset(50%);
  718. }
  719. [hidden] {
  720. display:none!important;
  721. }
  722. @keyframes pulse {
  723. 50% {
  724. opacity:.35;
  725. }
  726. }
  727. @media(max-width:960px) {
  728. .workspace {
  729. grid-template-columns:320px minmax(0,1fr);
  730. }
  731. .card {
  732. padding:20px;
  733. }
  734. .channel-list {
  735. grid-template-columns:1fr;
  736. }
  737. .event-totals {
  738. gap:12px;
  739. }
  740. }
  741. @media(max-width:760px) {
  742. .page {
  743. padding:24px 18px;
  744. }
  745. .workspace {
  746. grid-template-columns:1fr;
  747. }
  748. .page-header {
  749. align-items:flex-start;
  750. }
  751. .pill {
  752. margin-top:6px;
  753. padding:8px 11px;
  754. }
  755. h1 {
  756. font-size:28px;
  757. }
  758. .intro {
  759. max-width:250px;
  760. font-size:13px;
  761. }
  762. .channel-list {
  763. grid-template-columns:repeat(2,minmax(0,1fr));
  764. }
  765. .event-heading {
  766. flex-wrap:wrap;
  767. }
  768. .event-totals {
  769. width:100%;
  770. margin:3px 0 0 24px;
  771. }
  772. .checks li div span {
  773. max-width:250px;
  774. }
  775. footer {
  776. align-items:flex-start;
  777. flex-direction:column;
  778. gap:9px;
  779. }
  780. .section-heading {
  781. margin-bottom:18px;
  782. }
  783. .setup-card .small-note {
  784. max-width:500px;
  785. }
  786. }
  787. @media(prefers-reduced-motion:reduce) {
  788. *,*::before,*::after {
  789. animation:none!important;
  790. transition:none!important;
  791. }
  792. }