styles.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. :root {
  2. --mh-primary: #4f46e5;
  3. --mh-primary-hover: #4338ca;
  4. --mh-primary-soft: #eef2ff;
  5. --mh-ink: #0f172a;
  6. --mh-text-secondary: #64748b;
  7. --mh-text-muted: #94a3b8;
  8. --mh-canvas: #f4f6fb;
  9. --mh-surface: #ffffff;
  10. --mh-border: #e2e8f0;
  11. --mh-success: #16a34a;
  12. --mh-warning: #d97706;
  13. --mh-danger: #dc2626;
  14. --mh-radius-control: 10px;
  15. --mh-radius-card: 14px;
  16. --mh-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  17. }
  18. html,
  19. body,
  20. #root {
  21. min-height: 100%;
  22. }
  23. body {
  24. margin: 0;
  25. background: var(--mh-canvas);
  26. color: var(--mh-ink);
  27. font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  28. }
  29. .full-width {
  30. width: 100%;
  31. }
  32. .admin-layout {
  33. min-height: 100vh;
  34. }
  35. .admin-sider {
  36. background: var(--mh-ink) !important;
  37. border-right: 1px solid rgba(255, 255, 255, 0.06);
  38. height: 100vh;
  39. max-height: 100vh;
  40. overflow: hidden;
  41. position: sticky !important;
  42. top: 0;
  43. z-index: 20;
  44. }
  45. .admin-sider-inner {
  46. display: flex;
  47. flex-direction: column;
  48. height: 100%;
  49. min-height: 100%;
  50. }
  51. .admin-sider .admin-menu {
  52. background: transparent;
  53. border-inline-end: none !important;
  54. flex: 1;
  55. overflow-y: auto;
  56. padding: 4px 12px 16px;
  57. }
  58. .admin-sider .ant-menu-dark.ant-menu-inline .ant-menu-item {
  59. border-radius: 10px;
  60. height: 40px;
  61. line-height: 40px;
  62. margin-block: 2px;
  63. width: 100%;
  64. }
  65. .admin-sider .ant-menu-dark .ant-menu-item-selected {
  66. background: rgba(79, 70, 229, 0.22) !important;
  67. color: #e0e7ff !important;
  68. }
  69. .admin-sider .ant-menu-dark .ant-menu-item-selected .anticon {
  70. color: #c7d2fe;
  71. }
  72. .admin-sider .ant-menu-dark .ant-menu-item:not(.ant-menu-item-selected):hover {
  73. background: rgba(255, 255, 255, 0.06) !important;
  74. color: #f8fafc !important;
  75. }
  76. .admin-sider .ant-menu-dark .ant-menu-item-group-title {
  77. color: rgba(255, 255, 255, 0.38);
  78. font-size: 11px;
  79. font-weight: 600;
  80. letter-spacing: 0.06em;
  81. padding: 16px 12px 8px;
  82. text-transform: uppercase;
  83. }
  84. .admin-sider-footer {
  85. align-items: center;
  86. border-top: 1px solid rgba(255, 255, 255, 0.06);
  87. display: flex;
  88. gap: 10px;
  89. margin-top: auto;
  90. padding: 14px 16px 16px;
  91. }
  92. .sider-user-avatar {
  93. background: rgba(99, 102, 241, 0.35) !important;
  94. color: #e0e7ff !important;
  95. flex-shrink: 0;
  96. }
  97. .sider-user-meta {
  98. min-width: 0;
  99. }
  100. .sider-user-name {
  101. color: #f8fafc;
  102. font-size: 13px;
  103. font-weight: 600;
  104. overflow: hidden;
  105. text-overflow: ellipsis;
  106. white-space: nowrap;
  107. }
  108. .sider-user-role {
  109. color: rgba(255, 255, 255, 0.45);
  110. font-size: 11px;
  111. text-transform: capitalize;
  112. }
  113. .brand {
  114. align-items: center;
  115. display: flex;
  116. flex-shrink: 0;
  117. gap: 12px;
  118. min-height: 72px;
  119. padding: 18px 20px;
  120. }
  121. .brand-logo {
  122. align-items: center;
  123. background: linear-gradient(135deg, #6366f1, #8b5cf6);
  124. border-radius: 10px;
  125. color: #fff;
  126. display: inline-flex;
  127. flex-shrink: 0;
  128. font-size: 13px;
  129. font-weight: 800;
  130. height: 36px;
  131. justify-content: center;
  132. letter-spacing: 0.02em;
  133. width: 36px;
  134. }
  135. .brand-title {
  136. color: #ffffff;
  137. font-size: 16px;
  138. font-weight: 700;
  139. line-height: 1.2;
  140. }
  141. .brand-subtitle {
  142. color: rgba(255, 255, 255, 0.56);
  143. font-size: 12px;
  144. line-height: 1.3;
  145. margin-top: 2px;
  146. }
  147. .admin-header {
  148. align-items: center;
  149. background: var(--mh-surface);
  150. border-bottom: 1px solid var(--mh-border);
  151. display: flex;
  152. height: auto;
  153. justify-content: space-between;
  154. min-height: 64px;
  155. padding: 12px 24px;
  156. position: sticky;
  157. top: 0;
  158. z-index: 10;
  159. }
  160. .header-title {
  161. display: grid;
  162. gap: 4px;
  163. min-width: 0;
  164. }
  165. .header-breadcrumb.ant-breadcrumb {
  166. font-size: 15px;
  167. font-weight: 600;
  168. line-height: 1.35;
  169. }
  170. .header-breadcrumb .ant-breadcrumb-link {
  171. color: var(--mh-ink);
  172. }
  173. .header-actions {
  174. flex-shrink: 0;
  175. }
  176. .runtime-line {
  177. font-size: 13px;
  178. }
  179. .user-button {
  180. padding-inline: 10px;
  181. }
  182. .admin-content {
  183. background: var(--mh-canvas);
  184. padding: 28px 28px 40px;
  185. }
  186. .ant-card {
  187. border-color: var(--mh-border);
  188. box-shadow: var(--mh-shadow-card);
  189. }
  190. .metric-value {
  191. margin: 8px 0 0 !important;
  192. }
  193. .metric-card {
  194. min-height: 122px;
  195. }
  196. .chart-card .ant-card-body {
  197. min-height: 364px;
  198. }
  199. .language-select {
  200. min-width: 116px;
  201. }
  202. .token-list-alert {
  203. margin-bottom: 16px;
  204. }
  205. .api-doc-list {
  206. color: #475569;
  207. margin: 0;
  208. padding-left: 18px;
  209. }
  210. .api-doc-list li + li {
  211. margin-top: 8px;
  212. }
  213. .inline-code-value {
  214. max-width: min(620px, 64vw);
  215. overflow-wrap: anywhere;
  216. white-space: normal;
  217. }
  218. .trend-bars {
  219. align-items: end;
  220. display: grid;
  221. gap: 8px;
  222. grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  223. min-height: 260px;
  224. }
  225. .trend-bar-item {
  226. align-items: center;
  227. display: grid;
  228. gap: 8px;
  229. justify-items: center;
  230. }
  231. .trend-bar-track {
  232. align-items: end;
  233. background: #edf3fb;
  234. border-radius: 8px;
  235. display: flex;
  236. height: 210px;
  237. overflow: hidden;
  238. width: 100%;
  239. }
  240. .trend-bar-fill {
  241. background: var(--mh-primary);
  242. border-radius: 8px 8px 0 0;
  243. width: 100%;
  244. }
  245. .health-row {
  246. align-items: center;
  247. border-bottom: 1px solid #eef2f7;
  248. display: flex;
  249. justify-content: space-between;
  250. padding: 10px 0;
  251. }
  252. .health-row > div {
  253. display: grid;
  254. gap: 2px;
  255. }
  256. .page-toolbar {
  257. align-items: center;
  258. display: flex;
  259. gap: 16px;
  260. justify-content: space-between;
  261. }
  262. .toolbar-search {
  263. width: 260px;
  264. }
  265. .toolbar-select {
  266. min-width: 180px;
  267. }
  268. .table-link {
  269. font-weight: 600;
  270. padding: 0;
  271. }
  272. .domain-health-card .ant-card-body {
  273. padding: 24px;
  274. }
  275. .domain-title-row {
  276. align-items: flex-start;
  277. display: flex;
  278. gap: 16px;
  279. justify-content: space-between;
  280. }
  281. .domain-title-row h2 {
  282. margin: 4px 0 0 !important;
  283. overflow-wrap: anywhere;
  284. }
  285. .health-progress {
  286. display: grid;
  287. gap: 8px;
  288. }
  289. .health-progress > div {
  290. align-items: center;
  291. display: flex;
  292. justify-content: space-between;
  293. }
  294. .domain-action-panel {
  295. background: #f8fafc;
  296. border: 1px solid var(--mh-border);
  297. border-radius: 12px;
  298. display: grid;
  299. gap: 12px;
  300. padding: 16px;
  301. }
  302. .dns-record-card .ant-card-head-title {
  303. min-width: 0;
  304. }
  305. .dns-value-row {
  306. display: grid;
  307. gap: 8px;
  308. grid-template-columns: 72px minmax(0, 1fr) 40px;
  309. }
  310. .dns-code-block {
  311. display: block;
  312. margin: 0 !important;
  313. max-width: 100%;
  314. overflow-wrap: anywhere;
  315. white-space: pre-wrap;
  316. word-break: break-word;
  317. }
  318. .dns-empty-value {
  319. margin: 6px 0 0 !important;
  320. }
  321. .value-stack {
  322. margin-top: 8px;
  323. }
  324. .code-sample {
  325. display: block;
  326. max-width: 100%;
  327. overflow-wrap: anywhere;
  328. white-space: pre-wrap;
  329. }
  330. .delivery-log-card .ant-timeline {
  331. margin-top: 6px;
  332. }
  333. .delivery-log-entry {
  334. display: grid;
  335. gap: 8px;
  336. min-width: 0;
  337. }
  338. .delivery-log-line {
  339. align-items: start;
  340. display: grid;
  341. gap: 8px;
  342. grid-template-columns: 18px minmax(0, 1fr);
  343. }
  344. .delivery-log-line .ant-typography {
  345. overflow-wrap: anywhere;
  346. white-space: pre-wrap;
  347. }
  348. .drawer-footer {
  349. align-items: center;
  350. display: flex;
  351. justify-content: space-between;
  352. }
  353. .confirm-list {
  354. color: #475569;
  355. margin: 0 0 16px;
  356. padding-left: 18px;
  357. }
  358. .form-grid {
  359. display: grid;
  360. gap: 0 16px;
  361. }
  362. .form-grid.two {
  363. grid-template-columns: repeat(2, minmax(0, 1fr));
  364. }
  365. .form-grid.three {
  366. grid-template-columns: repeat(3, minmax(0, 1fr));
  367. }
  368. .table-select {
  369. min-width: 120px;
  370. }
  371. .auth-page {
  372. background:
  373. radial-gradient(circle at 12% 10%, rgba(79, 70, 229, 0.14), transparent 30%),
  374. radial-gradient(circle at 88% 82%, rgba(99, 102, 241, 0.08), transparent 26%),
  375. linear-gradient(135deg, var(--mh-canvas) 0%, var(--mh-primary-soft) 52%, var(--mh-canvas) 100%);
  376. display: grid;
  377. grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  378. min-height: 100vh;
  379. }
  380. .auth-brand-panel {
  381. background: var(--mh-ink);
  382. color: #fff;
  383. display: grid;
  384. gap: 32px;
  385. grid-template-rows: 1fr auto;
  386. padding: 56px;
  387. }
  388. .auth-brand-top {
  389. align-content: center;
  390. display: grid;
  391. gap: 20px;
  392. max-width: 520px;
  393. }
  394. .auth-brand-top h1 {
  395. color: #fff;
  396. font-size: 46px;
  397. letter-spacing: 0;
  398. line-height: 1.05;
  399. margin: 0 0 10px !important;
  400. }
  401. .auth-brand-top .ant-typography {
  402. color: rgba(255, 255, 255, 0.72);
  403. }
  404. /* Inherits admin .brand-logo gradient; oversized for auth hero */
  405. .auth-logo {
  406. border-radius: var(--mh-radius-control);
  407. font-size: 16px;
  408. height: 52px;
  409. width: 52px;
  410. }
  411. .auth-signal-list {
  412. display: grid;
  413. gap: 12px;
  414. max-width: 520px;
  415. }
  416. .auth-signal-item {
  417. align-items: center;
  418. background: rgba(255, 255, 255, 0.06);
  419. border: 1px solid rgba(255, 255, 255, 0.1);
  420. border-radius: var(--mh-radius-card);
  421. display: flex;
  422. gap: 14px;
  423. padding: 16px;
  424. }
  425. .auth-signal-item > span {
  426. align-items: center;
  427. background: rgba(79, 70, 229, 0.22);
  428. border: 1px solid rgba(165, 180, 252, 0.28);
  429. border-radius: var(--mh-radius-control);
  430. color: #c7d2fe;
  431. display: inline-flex;
  432. font-size: 22px;
  433. height: 42px;
  434. justify-content: center;
  435. width: 42px;
  436. }
  437. .auth-signal-item .ant-typography {
  438. color: rgba(255, 255, 255, 0.58);
  439. margin: 0 !important;
  440. }
  441. .auth-signal-item h5.ant-typography {
  442. color: #fff;
  443. }
  444. .auth-form-panel {
  445. align-content: center;
  446. display: grid;
  447. justify-items: center;
  448. padding: 48px 28px;
  449. position: relative;
  450. }
  451. .auth-language-row {
  452. position: absolute;
  453. right: 28px;
  454. top: 24px;
  455. }
  456. .auth-card {
  457. background: var(--mh-surface);
  458. border-color: var(--mh-border);
  459. border-radius: var(--mh-radius-card);
  460. box-shadow: var(--mh-shadow-card);
  461. max-width: 456px;
  462. overflow: hidden;
  463. width: 100%;
  464. }
  465. .auth-card .ant-card-body {
  466. padding: 36px;
  467. }
  468. .auth-heading h2 {
  469. color: var(--mh-ink);
  470. margin: 6px 0 0 !important;
  471. }
  472. .auth-link-row {
  473. display: flex;
  474. justify-content: space-between;
  475. margin-top: 8px;
  476. }
  477. .auth-eyebrow {
  478. color: var(--mh-primary);
  479. font-size: 12px;
  480. font-weight: 700;
  481. letter-spacing: 0.08em;
  482. text-transform: uppercase;
  483. }
  484. /* Shared presentation components */
  485. .page-header {
  486. align-items: flex-start;
  487. display: flex;
  488. gap: 16px;
  489. justify-content: space-between;
  490. margin-bottom: 4px;
  491. }
  492. .page-header__text {
  493. display: grid;
  494. gap: 4px;
  495. min-width: 0;
  496. }
  497. .page-header__title {
  498. margin: 0 !important;
  499. }
  500. .page-header__subtitle {
  501. display: block;
  502. }
  503. .page-header__extra {
  504. align-items: center;
  505. display: flex;
  506. flex-shrink: 0;
  507. gap: 8px;
  508. }
  509. .metric-card--warning .metric-value {
  510. color: var(--mh-warning);
  511. }
  512. .metric-card--danger .metric-value {
  513. color: var(--mh-danger);
  514. }
  515. .metric-card__hint {
  516. display: block;
  517. margin-top: 4px;
  518. }
  519. .section-card {
  520. border-radius: var(--mh-radius-card);
  521. }
  522. .status-pill {
  523. display: inline-flex;
  524. align-items: center;
  525. gap: 6px;
  526. border-radius: 999px;
  527. padding: 3px 10px;
  528. font-size: 12px;
  529. font-weight: 600;
  530. border: 1px solid transparent;
  531. }
  532. .status-pill--success {
  533. background: #ecfdf5;
  534. color: #15803d;
  535. border-color: #bbf7d0;
  536. }
  537. .status-pill--warning {
  538. background: #fffbeb;
  539. color: #b45309;
  540. border-color: #fde68a;
  541. }
  542. .status-pill--error {
  543. background: #fef2f2;
  544. color: #b91c1c;
  545. border-color: #fecaca;
  546. }
  547. .status-pill--info {
  548. background: var(--mh-primary-soft);
  549. color: #4338ca;
  550. border-color: #c7d2fe;
  551. }
  552. .status-pill--neutral {
  553. background: #f8fafc;
  554. color: #475569;
  555. border-color: var(--mh-border);
  556. }
  557. .empty-state {
  558. padding: 24px 12px;
  559. }
  560. .code-block {
  561. align-items: flex-start;
  562. background: #f8fafc;
  563. border: 1px solid var(--mh-border);
  564. border-radius: 10px;
  565. display: flex;
  566. gap: 8px;
  567. padding: 10px 12px;
  568. }
  569. .code-block__value {
  570. flex: 1;
  571. margin: 0 !important;
  572. max-width: 100%;
  573. overflow-wrap: anywhere;
  574. white-space: pre-wrap;
  575. word-break: break-word;
  576. }
  577. .code-block__copy {
  578. flex-shrink: 0;
  579. }
  580. @media (max-width: 900px) {
  581. .admin-header,
  582. .page-toolbar,
  583. .domain-title-row,
  584. .health-progress > div {
  585. align-items: flex-start;
  586. flex-direction: column;
  587. }
  588. .admin-header {
  589. gap: 12px;
  590. position: static;
  591. }
  592. .admin-sider {
  593. height: auto;
  594. max-height: none;
  595. position: static !important;
  596. }
  597. .admin-content {
  598. padding: 16px 16px 28px;
  599. }
  600. .admin-sider .admin-menu {
  601. overflow-y: visible;
  602. }
  603. .toolbar-search,
  604. .toolbar-select {
  605. width: 100%;
  606. }
  607. .form-grid.two,
  608. .form-grid.three {
  609. grid-template-columns: 1fr;
  610. }
  611. .dns-value-row {
  612. grid-template-columns: 1fr;
  613. }
  614. .auth-page {
  615. grid-template-columns: 1fr;
  616. }
  617. .auth-brand-panel {
  618. gap: 22px;
  619. grid-template-rows: auto auto;
  620. padding: 34px 22px;
  621. }
  622. .auth-brand-top h1 {
  623. font-size: 34px;
  624. }
  625. .auth-form-panel {
  626. padding: 28px 16px 34px;
  627. }
  628. .auth-language-row {
  629. justify-self: end;
  630. margin-bottom: 14px;
  631. position: static;
  632. }
  633. .auth-card .ant-card-body {
  634. padding: 24px;
  635. }
  636. }