app.css 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281
  1. :root {
  2. color-scheme: light;
  3. --workbench: #edf0ed;
  4. --surface: #ffffff;
  5. --surface-muted: #f5f7f5;
  6. --ink: #18201d;
  7. --ink-muted: #5d6963;
  8. --line: #cbd2cd;
  9. --line-strong: #929e97;
  10. --locator: #087e8b;
  11. --locator-soft: #d9f0f1;
  12. --verified: #2f6f4e;
  13. --verified-soft: #e0efe6;
  14. --risk: #b65f05;
  15. --risk-soft: #fff0d8;
  16. --danger: #b42318;
  17. --danger-soft: #fee4e2;
  18. --detail-width: 390px;
  19. --topbar-height: 68px;
  20. font-family: "Segoe UI Variable", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  21. font-size: 16px;
  22. letter-spacing: 0;
  23. }
  24. * {
  25. box-sizing: border-box;
  26. letter-spacing: 0;
  27. }
  28. [hidden] {
  29. display: none !important;
  30. }
  31. html,
  32. body {
  33. inline-size: 100%;
  34. block-size: 100%;
  35. margin: 0;
  36. overflow: hidden;
  37. background: var(--workbench);
  38. color: var(--ink);
  39. }
  40. button,
  41. input,
  42. select {
  43. font: inherit;
  44. }
  45. button,
  46. select,
  47. input[type="checkbox"] {
  48. cursor: pointer;
  49. }
  50. button:focus-visible,
  51. input:focus-visible,
  52. select:focus-visible,
  53. [tabindex]:focus-visible {
  54. outline: 3px solid color-mix(in srgb, var(--locator) 42%, transparent);
  55. outline-offset: 2px;
  56. }
  57. .sr-only {
  58. position: absolute;
  59. inline-size: 1px;
  60. block-size: 1px;
  61. padding: 0;
  62. margin: -1px;
  63. overflow: hidden;
  64. clip: rect(0, 0, 0, 0);
  65. white-space: nowrap;
  66. border: 0;
  67. }
  68. .app-shell {
  69. display: grid;
  70. grid-template-rows: auto minmax(0, 1fr);
  71. min-block-size: 100dvh;
  72. block-size: 100dvh;
  73. }
  74. .topbar {
  75. position: relative;
  76. z-index: 20;
  77. min-block-size: var(--topbar-height);
  78. display: grid;
  79. grid-template-columns: minmax(250px, 0.8fr) minmax(360px, 1.6fr) auto;
  80. align-items: center;
  81. gap: 18px;
  82. padding: 10px 16px;
  83. background: var(--surface);
  84. border-block-end: 1px solid var(--line);
  85. }
  86. .product-block {
  87. min-inline-size: 0;
  88. display: flex;
  89. align-items: center;
  90. gap: 11px;
  91. }
  92. .product-mark {
  93. flex: 0 0 auto;
  94. inline-size: 10px;
  95. block-size: 36px;
  96. background: var(--locator);
  97. border-radius: 2px;
  98. box-shadow: inset 0 -11px 0 var(--verified);
  99. }
  100. .product-title {
  101. overflow: hidden;
  102. color: var(--ink);
  103. font-family: Bahnschrift, "Segoe UI Variable", sans-serif;
  104. font-size: 1rem;
  105. font-weight: 650;
  106. text-overflow: ellipsis;
  107. white-space: nowrap;
  108. }
  109. .product-meta {
  110. margin-block-start: 3px;
  111. overflow: hidden;
  112. color: var(--ink-muted);
  113. font-family: Consolas, "Cascadia Mono", monospace;
  114. font-size: 0.72rem;
  115. text-overflow: ellipsis;
  116. white-space: nowrap;
  117. }
  118. .search-block {
  119. position: relative;
  120. min-inline-size: 0;
  121. }
  122. .search-field {
  123. min-block-size: 44px;
  124. display: grid;
  125. grid-template-columns: 24px minmax(0, 1fr);
  126. align-items: center;
  127. gap: 7px;
  128. padding-inline: 12px;
  129. background: var(--surface-muted);
  130. border: 1px solid var(--line);
  131. border-radius: 6px;
  132. color: var(--ink-muted);
  133. }
  134. .search-field:focus-within {
  135. background: var(--surface);
  136. border-color: var(--locator);
  137. box-shadow: 0 0 0 3px var(--locator-soft);
  138. }
  139. .search-field input {
  140. min-inline-size: 0;
  141. inline-size: 100%;
  142. block-size: 40px;
  143. padding: 0;
  144. border: 0;
  145. outline: 0;
  146. background: transparent;
  147. color: var(--ink);
  148. font-size: 0.9rem;
  149. }
  150. .search-results {
  151. position: absolute;
  152. z-index: 50;
  153. inset-block-start: calc(100% + 6px);
  154. inset-inline: 0;
  155. max-block-size: min(420px, 60vh);
  156. overflow: auto;
  157. background: var(--surface);
  158. border: 1px solid var(--line-strong);
  159. border-radius: 6px;
  160. box-shadow: 0 16px 36px rgba(24, 32, 29, 0.18);
  161. }
  162. .search-result {
  163. inline-size: 100%;
  164. min-block-size: 52px;
  165. display: grid;
  166. grid-template-columns: 86px minmax(0, 1fr);
  167. gap: 10px;
  168. align-items: center;
  169. padding: 8px 12px;
  170. border: 0;
  171. border-block-end: 1px solid var(--line);
  172. background: var(--surface);
  173. color: var(--ink);
  174. text-align: start;
  175. }
  176. .search-result:hover,
  177. .search-result[aria-selected="true"] {
  178. background: var(--locator-soft);
  179. }
  180. .result-key,
  181. .mono {
  182. font-family: Consolas, "Cascadia Mono", monospace;
  183. }
  184. .result-detail {
  185. min-inline-size: 0;
  186. overflow: hidden;
  187. color: var(--ink-muted);
  188. font-size: 0.78rem;
  189. text-overflow: ellipsis;
  190. white-space: nowrap;
  191. }
  192. .empty-search {
  193. padding: 18px;
  194. color: var(--ink-muted);
  195. font-size: 0.84rem;
  196. text-align: center;
  197. }
  198. .status-cluster {
  199. display: flex;
  200. align-items: center;
  201. gap: 8px;
  202. }
  203. .status-badge {
  204. min-block-size: 30px;
  205. display: inline-flex;
  206. align-items: center;
  207. padding-inline: 10px;
  208. border: 1px solid transparent;
  209. border-radius: 999px;
  210. font-size: 0.76rem;
  211. font-weight: 650;
  212. white-space: nowrap;
  213. }
  214. .status-loading {
  215. background: var(--surface-muted);
  216. border-color: var(--line);
  217. color: var(--ink-muted);
  218. }
  219. .status-pass {
  220. background: var(--verified-soft);
  221. border-color: #9ac6ad;
  222. color: var(--verified);
  223. }
  224. .status-stale {
  225. background: var(--risk-soft);
  226. border-color: #e7b768;
  227. color: #874500;
  228. }
  229. .status-error {
  230. background: var(--danger-soft);
  231. border-color: #f3a6a0;
  232. color: var(--danger);
  233. }
  234. .workspace {
  235. min-block-size: 0;
  236. display: grid;
  237. grid-template-columns: minmax(0, 1fr) var(--detail-width);
  238. }
  239. .board-pane {
  240. min-inline-size: 0;
  241. min-block-size: 0;
  242. display: grid;
  243. grid-template-rows: auto auto minmax(0, 1fr) 32px;
  244. grid-template-areas:
  245. "status"
  246. "toolbar"
  247. "board"
  248. "footer";
  249. background: var(--workbench);
  250. }
  251. .stale-banner {
  252. grid-area: status;
  253. padding: 8px 14px;
  254. background: var(--risk-soft);
  255. border-block-end: 1px solid #e7b768;
  256. color: #704000;
  257. font-size: 0.8rem;
  258. }
  259. .board-toolbar {
  260. grid-area: toolbar;
  261. min-block-size: 54px;
  262. display: flex;
  263. align-items: center;
  264. gap: 18px;
  265. padding: 6px 12px;
  266. background: var(--surface);
  267. border-block-end: 1px solid var(--line);
  268. overflow-x: auto;
  269. scrollbar-width: thin;
  270. }
  271. fieldset {
  272. margin: 0;
  273. padding: 0;
  274. border: 0;
  275. }
  276. .segmented {
  277. display: inline-flex;
  278. flex: 0 0 auto;
  279. border: 1px solid var(--line);
  280. border-radius: 6px;
  281. overflow: hidden;
  282. }
  283. .segmented label {
  284. position: relative;
  285. min-block-size: 36px;
  286. display: inline-flex;
  287. align-items: center;
  288. justify-content: center;
  289. border-inline-end: 1px solid var(--line);
  290. }
  291. .segmented label:last-child {
  292. border-inline-end: 0;
  293. }
  294. .segmented input {
  295. position: absolute;
  296. opacity: 0;
  297. }
  298. .segmented span {
  299. min-inline-size: 46px;
  300. block-size: 36px;
  301. display: inline-flex;
  302. align-items: center;
  303. justify-content: center;
  304. padding-inline: 9px;
  305. color: var(--ink-muted);
  306. font-family: Consolas, "Cascadia Mono", monospace;
  307. font-size: 0.76rem;
  308. font-weight: 650;
  309. }
  310. .segmented input:checked + span {
  311. background: var(--ink);
  312. color: var(--surface);
  313. }
  314. .layer-controls {
  315. flex: 1 0 auto;
  316. display: flex;
  317. align-items: center;
  318. gap: 14px;
  319. }
  320. .layer-controls label {
  321. min-block-size: 36px;
  322. display: inline-flex;
  323. align-items: center;
  324. gap: 6px;
  325. color: var(--ink-muted);
  326. font-size: 0.76rem;
  327. white-space: nowrap;
  328. }
  329. .layer-controls input {
  330. inline-size: 16px;
  331. block-size: 16px;
  332. margin: 0;
  333. accent-color: var(--locator);
  334. }
  335. .swatch {
  336. inline-size: 10px;
  337. block-size: 10px;
  338. border: 1px solid rgba(24, 32, 29, 0.28);
  339. border-radius: 2px;
  340. }
  341. .swatch-mask { background: #d864ff; }
  342. .swatch-silk { background: #f2eda1; }
  343. .swatch-copper { background: #c94646; }
  344. .swatch-photo { background: #87938d; }
  345. .disabled-control {
  346. cursor: not-allowed;
  347. opacity: 0.52;
  348. }
  349. .view-tools {
  350. display: flex;
  351. flex: 0 0 auto;
  352. align-items: center;
  353. gap: 4px;
  354. }
  355. .icon-button {
  356. min-inline-size: 44px;
  357. min-block-size: 44px;
  358. display: inline-grid;
  359. place-items: center;
  360. padding: 0;
  361. border: 1px solid var(--line);
  362. border-radius: 6px;
  363. background: var(--surface);
  364. color: var(--ink);
  365. font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
  366. font-size: 1.2rem;
  367. line-height: 1;
  368. }
  369. .icon-button:hover {
  370. background: var(--surface-muted);
  371. border-color: var(--line-strong);
  372. }
  373. .drawer-toggle {
  374. display: none;
  375. }
  376. .board-viewport {
  377. grid-area: board;
  378. position: relative;
  379. min-block-size: 0;
  380. margin: 12px;
  381. overflow: hidden;
  382. background: #dfe4e0;
  383. border: 1px solid var(--line-strong);
  384. border-radius: 6px;
  385. box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.34);
  386. }
  387. #board-svg {
  388. inline-size: 100%;
  389. block-size: 100%;
  390. display: block;
  391. cursor: grab;
  392. touch-action: none;
  393. user-select: none;
  394. }
  395. #board-svg.is-panning {
  396. cursor: grabbing;
  397. }
  398. #layer-mask { opacity: 0.68; }
  399. #layer-silk { opacity: 0.94; }
  400. #layer-copper { opacity: 0.43; mix-blend-mode: multiply; }
  401. #layer-photo { opacity: 0.72; }
  402. .hotspot {
  403. fill: rgba(8, 126, 139, 0.025);
  404. stroke: rgba(8, 126, 139, 0.48);
  405. stroke-width: 0.18;
  406. vector-effect: non-scaling-stroke;
  407. cursor: pointer;
  408. }
  409. .hotspot:hover,
  410. .hotspot:focus {
  411. fill: rgba(8, 126, 139, 0.18);
  412. stroke: var(--locator);
  413. stroke-width: 1.5;
  414. }
  415. .hotspot.is-selected {
  416. fill: rgba(8, 126, 139, 0.14);
  417. stroke: var(--locator);
  418. stroke-width: 2;
  419. }
  420. .pin-hit {
  421. fill: transparent;
  422. stroke: none;
  423. cursor: crosshair;
  424. pointer-events: none;
  425. }
  426. #board-svg.pins-interactive .pin-hit {
  427. pointer-events: all;
  428. }
  429. .pin-dot {
  430. fill: rgba(255, 255, 255, 0.55);
  431. stroke: rgba(24, 32, 29, 0.72);
  432. stroke-width: 0.16;
  433. vector-effect: non-scaling-stroke;
  434. pointer-events: none;
  435. }
  436. .pin-group.role-shield .pin-dot {
  437. fill: rgba(182, 95, 5, 0.22);
  438. stroke: var(--risk);
  439. stroke-dasharray: 2 1;
  440. }
  441. .pin-group.role-mechanical .pin-dot {
  442. fill: transparent;
  443. stroke: var(--line-strong);
  444. stroke-width: 0.28;
  445. }
  446. .pin-group.role-unknown .pin-dot {
  447. fill: rgba(180, 35, 24, 0.12);
  448. stroke: var(--danger);
  449. stroke-dasharray: 1.5 1.5;
  450. }
  451. .pin-group:hover .pin-dot,
  452. .pin-group:focus .pin-dot,
  453. .pin-group.is-selected .pin-dot {
  454. fill: #ffffff;
  455. stroke: var(--locator);
  456. stroke-width: 1.8;
  457. }
  458. .net-highlight {
  459. fill: rgba(182, 95, 5, 0.28);
  460. stroke: var(--risk);
  461. stroke-width: 2;
  462. vector-effect: non-scaling-stroke;
  463. }
  464. .selection-reticle {
  465. fill: none;
  466. stroke: var(--locator);
  467. stroke-width: 2;
  468. stroke-dasharray: 7 4;
  469. vector-effect: non-scaling-stroke;
  470. pointer-events: none;
  471. }
  472. .selection-cross {
  473. stroke: var(--locator);
  474. stroke-width: 2;
  475. vector-effect: non-scaling-stroke;
  476. }
  477. .board-loading {
  478. position: absolute;
  479. inset: 0;
  480. display: grid;
  481. place-items: center;
  482. color: var(--ink-muted);
  483. font-family: Consolas, "Cascadia Mono", monospace;
  484. font-size: 0.82rem;
  485. pointer-events: none;
  486. }
  487. .board-tooltip {
  488. position: absolute;
  489. z-index: 15;
  490. max-inline-size: min(300px, calc(100% - 24px));
  491. padding: 9px 11px;
  492. background: rgba(24, 32, 29, 0.96);
  493. border: 1px solid rgba(255, 255, 255, 0.16);
  494. border-radius: 5px;
  495. color: #ffffff;
  496. box-shadow: 0 8px 22px rgba(24, 32, 29, 0.25);
  497. font-size: 0.76rem;
  498. line-height: 1.45;
  499. pointer-events: none;
  500. }
  501. .tooltip-key {
  502. color: #99e1e6;
  503. font-family: Consolas, "Cascadia Mono", monospace;
  504. font-weight: 700;
  505. }
  506. .tooltip-role {
  507. color: #ffd08a;
  508. font-size: 0.68rem;
  509. font-weight: 700;
  510. }
  511. .coordinate-rail {
  512. position: absolute;
  513. inset-block-start: 7px;
  514. inset-inline: 12px;
  515. display: flex;
  516. justify-content: space-between;
  517. color: rgba(24, 32, 29, 0.55);
  518. font-family: Consolas, "Cascadia Mono", monospace;
  519. font-size: 0.62rem;
  520. pointer-events: none;
  521. }
  522. .board-footer {
  523. grid-area: footer;
  524. display: grid;
  525. grid-template-columns: 1fr auto 1fr;
  526. align-items: center;
  527. gap: 12px;
  528. padding-inline: 14px;
  529. color: var(--ink-muted);
  530. font-family: Consolas, "Cascadia Mono", monospace;
  531. font-size: 0.7rem;
  532. }
  533. .board-footer span:last-child {
  534. overflow: hidden;
  535. text-align: end;
  536. text-overflow: ellipsis;
  537. white-space: nowrap;
  538. }
  539. .detail-panel {
  540. min-inline-size: 0;
  541. min-block-size: 0;
  542. display: grid;
  543. grid-template-rows: auto minmax(0, 1fr);
  544. background: var(--surface);
  545. border-inline-start: 1px solid var(--line);
  546. overflow: hidden;
  547. }
  548. .drawer-handle {
  549. display: none;
  550. }
  551. .detail-tabs {
  552. display: grid;
  553. grid-template-columns: 1fr 1fr;
  554. border-block-end: 1px solid var(--line);
  555. }
  556. .detail-tabs button {
  557. min-block-size: 48px;
  558. border: 0;
  559. border-block-end: 3px solid transparent;
  560. background: var(--surface);
  561. color: var(--ink-muted);
  562. font-size: 0.84rem;
  563. font-weight: 650;
  564. }
  565. .detail-tabs button[aria-selected="true"] {
  566. border-block-end-color: var(--locator);
  567. color: var(--ink);
  568. }
  569. .panel-content {
  570. min-block-size: 0;
  571. overflow: auto;
  572. padding: 18px;
  573. scrollbar-width: thin;
  574. }
  575. .empty-panel {
  576. min-block-size: 100%;
  577. display: grid;
  578. place-content: center;
  579. gap: 8px;
  580. color: var(--ink-muted);
  581. text-align: center;
  582. }
  583. .empty-panel strong {
  584. color: var(--ink);
  585. font-size: 0.98rem;
  586. }
  587. .empty-stats {
  588. font-family: Consolas, "Cascadia Mono", monospace;
  589. font-size: 0.76rem;
  590. }
  591. .detail-heading {
  592. display: flex;
  593. align-items: flex-start;
  594. justify-content: space-between;
  595. gap: 12px;
  596. padding-block-end: 14px;
  597. border-block-end: 1px solid var(--line);
  598. }
  599. .detail-reference {
  600. margin: 0;
  601. font-family: Bahnschrift, Consolas, monospace;
  602. font-size: 1.35rem;
  603. font-weight: 700;
  604. }
  605. .detail-summary {
  606. margin: 5px 0 0;
  607. color: var(--ink-muted);
  608. font-size: 0.82rem;
  609. line-height: 1.45;
  610. }
  611. .category-tag,
  612. .evidence-tag {
  613. min-block-size: 26px;
  614. display: inline-flex;
  615. align-items: center;
  616. padding-inline: 8px;
  617. border: 1px solid var(--line);
  618. border-radius: 999px;
  619. background: var(--surface-muted);
  620. color: var(--ink-muted);
  621. font-family: Consolas, "Cascadia Mono", monospace;
  622. font-size: 0.68rem;
  623. white-space: nowrap;
  624. }
  625. .evidence-tag.verified {
  626. background: var(--verified-soft);
  627. border-color: #9ac6ad;
  628. color: var(--verified);
  629. }
  630. .detail-facts {
  631. display: grid;
  632. grid-template-columns: 1fr 1fr;
  633. gap: 0;
  634. margin: 14px 0;
  635. border-block: 1px solid var(--line);
  636. }
  637. .fact {
  638. min-inline-size: 0;
  639. padding: 10px 8px;
  640. border-block-end: 1px solid var(--line);
  641. }
  642. .fact:nth-child(odd) {
  643. border-inline-end: 1px solid var(--line);
  644. }
  645. .fact:nth-last-child(-n + 2) {
  646. border-block-end: 0;
  647. }
  648. .fact-label {
  649. display: block;
  650. margin-block-end: 4px;
  651. color: var(--ink-muted);
  652. font-size: 0.68rem;
  653. }
  654. .fact-value {
  655. display: block;
  656. overflow-wrap: anywhere;
  657. font-family: Consolas, "Cascadia Mono", monospace;
  658. font-size: 0.76rem;
  659. }
  660. .section-title {
  661. margin: 18px 0 8px;
  662. color: var(--ink-muted);
  663. font-size: 0.72rem;
  664. font-weight: 700;
  665. text-transform: uppercase;
  666. }
  667. .connector-layout {
  668. margin-block-start: 16px;
  669. padding: 10px;
  670. border: 1px solid var(--line);
  671. border-radius: 6px;
  672. background: var(--surface-muted);
  673. }
  674. .connector-layout-header {
  675. display: flex;
  676. align-items: center;
  677. justify-content: space-between;
  678. gap: 8px;
  679. }
  680. .connector-layout-title {
  681. margin: 0;
  682. }
  683. .connector-orientation {
  684. display: grid;
  685. justify-items: center;
  686. gap: 4px;
  687. margin-block-start: 10px;
  688. }
  689. .connector-axis-row {
  690. inline-size: 100%;
  691. display: grid;
  692. grid-template-columns: 18px minmax(0, 1fr) 18px;
  693. align-items: center;
  694. gap: 4px;
  695. }
  696. .connector-axis {
  697. color: var(--ink-muted);
  698. font-size: 0.66rem;
  699. font-weight: 700;
  700. text-align: center;
  701. }
  702. .connector-grid {
  703. min-inline-size: 0;
  704. display: grid;
  705. gap: 5px;
  706. }
  707. .connector-grid-row {
  708. min-inline-size: 0;
  709. display: grid;
  710. grid-template-columns: repeat(var(--connector-columns), minmax(0, 1fr));
  711. gap: 5px;
  712. }
  713. .connector-contact {
  714. min-inline-size: 0;
  715. min-block-size: 42px;
  716. border: 1px solid var(--line-strong);
  717. border-radius: 4px;
  718. background: var(--surface);
  719. color: var(--ink);
  720. font-family: Consolas, "Cascadia Mono", monospace;
  721. font-size: 0.78rem;
  722. font-weight: 700;
  723. }
  724. .connector-contact:hover,
  725. .connector-contact.is-selected {
  726. border-color: var(--locator);
  727. background: var(--locator-soft);
  728. color: #07545c;
  729. }
  730. .connector-layout-meta {
  731. margin-block-start: 9px;
  732. overflow-wrap: anywhere;
  733. color: var(--ink-muted);
  734. font-family: Consolas, "Cascadia Mono", monospace;
  735. font-size: 0.66rem;
  736. line-height: 1.4;
  737. }
  738. .connector-perspective-note {
  739. margin-block-start: 8px;
  740. padding-block-start: 8px;
  741. border-block-start: 1px solid var(--line);
  742. color: #07545c;
  743. font-size: 0.7rem;
  744. font-weight: 650;
  745. line-height: 1.45;
  746. }
  747. .pin-list {
  748. border-block-start: 1px solid var(--line);
  749. }
  750. .pin-row {
  751. inline-size: 100%;
  752. min-block-size: 54px;
  753. display: grid;
  754. grid-template-columns: 42px minmax(0, 1fr) auto;
  755. align-items: center;
  756. gap: 9px;
  757. padding: 7px 5px;
  758. border: 0;
  759. border-block-end: 1px solid var(--line);
  760. background: var(--surface);
  761. color: var(--ink);
  762. text-align: start;
  763. }
  764. .pin-row:hover,
  765. .pin-row.is-selected {
  766. background: var(--locator-soft);
  767. }
  768. .pin-number {
  769. font-family: Consolas, "Cascadia Mono", monospace;
  770. font-weight: 700;
  771. }
  772. .pin-primary {
  773. min-inline-size: 0;
  774. }
  775. .pin-net {
  776. display: block;
  777. margin-block-start: 3px;
  778. overflow: hidden;
  779. color: var(--ink-muted);
  780. font-family: Consolas, "Cascadia Mono", monospace;
  781. font-size: 0.77rem;
  782. text-overflow: ellipsis;
  783. white-space: nowrap;
  784. }
  785. .pin-summary {
  786. display: block;
  787. overflow: hidden;
  788. color: var(--ink);
  789. font-weight: 650;
  790. line-height: 1.35;
  791. font-size: 0.7rem;
  792. text-overflow: ellipsis;
  793. white-space: nowrap;
  794. }
  795. .pin-direction {
  796. color: var(--ink-muted);
  797. font-size: 0.68rem;
  798. white-space: nowrap;
  799. }
  800. .pin-detail {
  801. margin-block-start: 16px;
  802. padding-block-start: 15px;
  803. border-block-start: 2px solid var(--locator);
  804. }
  805. .pin-detail-header {
  806. display: flex;
  807. align-items: center;
  808. justify-content: space-between;
  809. gap: 10px;
  810. }
  811. .pin-detail-header h3 {
  812. margin: 0;
  813. font-family: Consolas, "Cascadia Mono", monospace;
  814. font-size: 1rem;
  815. }
  816. .programming-guide {
  817. margin-block-start: 14px;
  818. padding: 2px 0 2px 14px;
  819. border-inline-start: 4px solid var(--line-strong);
  820. }
  821. .programming-guide.status-verified_fpga,
  822. .programming-guide.status-verified_mcu {
  823. border-inline-start-color: var(--verified);
  824. }
  825. .programming-guide.status-board_only {
  826. border-inline-start-color: var(--risk);
  827. }
  828. .programming-guide.status-not_programmable,
  829. .programming-guide.status-unknown {
  830. border-inline-start-color: var(--danger);
  831. }
  832. .programming-guide-heading {
  833. display: flex;
  834. align-items: center;
  835. justify-content: space-between;
  836. gap: 10px;
  837. }
  838. .programming-title {
  839. margin-block-start: 0;
  840. color: var(--ink);
  841. font-size: 0.78rem;
  842. text-transform: none;
  843. }
  844. .programming-conclusion {
  845. margin: 7px 0 0;
  846. color: var(--ink);
  847. font-size: 0.84rem;
  848. font-weight: 700;
  849. line-height: 1.55;
  850. }
  851. .programming-copy {
  852. margin: 0;
  853. color: var(--ink-muted);
  854. font-size: 0.74rem;
  855. line-height: 1.55;
  856. }
  857. .guidance-list,
  858. .component-list {
  859. margin: 0;
  860. padding: 0;
  861. list-style: none;
  862. }
  863. .guidance-list li,
  864. .component-list li {
  865. position: relative;
  866. padding: 5px 0 5px 15px;
  867. color: var(--ink);
  868. font-size: 0.72rem;
  869. line-height: 1.5;
  870. overflow-wrap: anywhere;
  871. }
  872. .guidance-list li::before,
  873. .component-list li::before {
  874. content: "";
  875. position: absolute;
  876. inset-inline-start: 1px;
  877. inset-block-start: 11px;
  878. inline-size: 6px;
  879. block-size: 6px;
  880. border-radius: 50%;
  881. background: var(--locator);
  882. }
  883. .constraint-list li {
  884. font-family: Consolas, "Cascadia Mono", monospace;
  885. }
  886. .risk-list li::before {
  887. background: var(--risk);
  888. }
  889. .component-list {
  890. display: grid;
  891. grid-template-columns: 1fr 1fr;
  892. gap: 0 10px;
  893. }
  894. .component-list li {
  895. font-family: Consolas, "Cascadia Mono", monospace;
  896. }
  897. .path-list,
  898. .source-list {
  899. margin: 0;
  900. padding: 0;
  901. list-style: none;
  902. }
  903. .path-list li {
  904. position: relative;
  905. padding: 8px 8px 8px 18px;
  906. border-inline-start: 2px solid var(--line);
  907. color: var(--ink);
  908. font-family: Consolas, "Cascadia Mono", monospace;
  909. font-size: 0.73rem;
  910. overflow-wrap: anywhere;
  911. }
  912. .path-list li::before {
  913. content: "";
  914. position: absolute;
  915. inset-inline-start: -5px;
  916. inset-block-start: 13px;
  917. inline-size: 8px;
  918. block-size: 8px;
  919. background: var(--locator);
  920. border-radius: 50%;
  921. }
  922. .source-list li {
  923. padding: 6px 0;
  924. border-block-end: 1px solid var(--line);
  925. color: var(--ink-muted);
  926. font-size: 0.7rem;
  927. line-height: 1.45;
  928. overflow-wrap: anywhere;
  929. }
  930. .risk-note,
  931. .info-note {
  932. margin-block-start: 12px;
  933. padding: 9px 10px;
  934. border-inline-start: 3px solid var(--risk);
  935. background: var(--risk-soft);
  936. color: #704000;
  937. font-size: 0.72rem;
  938. line-height: 1.5;
  939. }
  940. .info-note {
  941. border-inline-start-color: var(--locator);
  942. background: var(--locator-soft);
  943. color: #07545c;
  944. }
  945. .adc-controls {
  946. display: grid;
  947. grid-template-columns: minmax(0, 1fr) 44px;
  948. gap: 6px;
  949. margin-block-start: 8px;
  950. }
  951. .adc-controls input,
  952. .candidate-controls select {
  953. min-inline-size: 0;
  954. min-block-size: 44px;
  955. padding-inline: 10px;
  956. border: 1px solid var(--line-strong);
  957. border-radius: 5px;
  958. background: var(--surface);
  959. color: var(--ink);
  960. }
  961. .copy-button {
  962. min-inline-size: 44px;
  963. min-block-size: 44px;
  964. border: 1px solid var(--line-strong);
  965. border-radius: 5px;
  966. background: var(--surface);
  967. color: var(--ink);
  968. font-size: 1.05rem;
  969. }
  970. .copy-button:disabled,
  971. .adc-controls input:disabled {
  972. cursor: not-allowed;
  973. opacity: 0.5;
  974. }
  975. .copy-status {
  976. min-block-size: 20px;
  977. margin-block-start: 5px;
  978. color: var(--ink-muted);
  979. font-size: 0.68rem;
  980. }
  981. .candidate-controls {
  982. display: grid;
  983. gap: 7px;
  984. padding-block-end: 15px;
  985. border-block-end: 1px solid var(--line);
  986. }
  987. .candidate-controls label {
  988. color: var(--ink-muted);
  989. font-size: 0.72rem;
  990. font-weight: 700;
  991. }
  992. .candidate-list {
  993. margin-block-start: 12px;
  994. }
  995. .candidate-row {
  996. inline-size: 100%;
  997. display: grid;
  998. gap: 6px;
  999. padding: 12px 4px;
  1000. border: 0;
  1001. border-block-end: 1px solid var(--line);
  1002. background: var(--surface);
  1003. color: var(--ink);
  1004. text-align: start;
  1005. }
  1006. .candidate-row:hover {
  1007. background: var(--locator-soft);
  1008. }
  1009. .candidate-key {
  1010. font-family: Consolas, "Cascadia Mono", monospace;
  1011. font-size: 0.82rem;
  1012. font-weight: 700;
  1013. }
  1014. .candidate-reason,
  1015. .candidate-warning {
  1016. color: var(--ink-muted);
  1017. font-size: 0.7rem;
  1018. line-height: 1.45;
  1019. }
  1020. .candidate-warning {
  1021. color: #704000;
  1022. }
  1023. @media (max-width: 1180px) {
  1024. :root { --detail-width: 350px; }
  1025. .topbar { grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr) auto; gap: 10px; }
  1026. .layer-controls { gap: 9px; }
  1027. }
  1028. @media (max-width: 860px) {
  1029. :root { --topbar-height: 116px; }
  1030. .topbar {
  1031. grid-template-columns: minmax(0, 1fr) auto;
  1032. gap: 8px 10px;
  1033. padding: 8px 10px;
  1034. }
  1035. .product-title { font-size: 0.92rem; }
  1036. .product-meta { font-size: 0.66rem; }
  1037. .search-block { grid-column: 1 / -1; grid-row: 2; }
  1038. .status-cluster { grid-column: 2; grid-row: 1; }
  1039. .status-badge { max-inline-size: 98px; overflow: hidden; text-overflow: ellipsis; }
  1040. .workspace {
  1041. display: block;
  1042. min-block-size: 0;
  1043. }
  1044. .board-pane {
  1045. block-size: 100%;
  1046. padding-block-end: 48px;
  1047. }
  1048. .board-toolbar {
  1049. gap: 12px;
  1050. padding-inline: 8px;
  1051. }
  1052. .layer-controls label { font-size: 0.7rem; }
  1053. .board-viewport { margin: 8px; }
  1054. .board-footer { padding-inline: 10px; }
  1055. .drawer-toggle {
  1056. display: inline-grid;
  1057. }
  1058. .detail-panel {
  1059. position: fixed;
  1060. z-index: 40;
  1061. inset-inline: 0;
  1062. inset-block-end: 0;
  1063. block-size: min(62dvh, 560px);
  1064. display: grid;
  1065. grid-template-rows: 16px auto minmax(0, 1fr);
  1066. border: 1px solid var(--line-strong);
  1067. border-block-end: 0;
  1068. border-radius: 8px 8px 0 0;
  1069. box-shadow: 0 -12px 32px rgba(24, 32, 29, 0.2);
  1070. transform: translateY(0);
  1071. transition: transform 180ms ease;
  1072. }
  1073. .app-shell.detail-collapsed .detail-panel {
  1074. transform: translateY(calc(100% - 50px));
  1075. }
  1076. .app-shell.detail-collapsed .drawer-toggle span {
  1077. display: inline-block;
  1078. transform: rotate(180deg);
  1079. }
  1080. .drawer-handle {
  1081. display: block;
  1082. inline-size: 42px;
  1083. block-size: 4px;
  1084. align-self: center;
  1085. justify-self: center;
  1086. background: var(--line-strong);
  1087. border-radius: 3px;
  1088. }
  1089. .detail-tabs button { min-block-size: 34px; }
  1090. .panel-content { padding: 14px; }
  1091. }
  1092. @media (max-width: 460px) {
  1093. .product-mark { block-size: 30px; }
  1094. .product-title { max-inline-size: 205px; }
  1095. .status-badge { display: none; }
  1096. .search-field input { font-size: 0.82rem; }
  1097. .board-toolbar { min-block-size: 50px; }
  1098. .layer-controls { display: none; }
  1099. .segmented span { min-inline-size: 42px; padding-inline: 6px; }
  1100. .board-footer { grid-template-columns: 1fr auto; }
  1101. .board-footer span:last-child { display: none; }
  1102. .coordinate-rail { font-size: 0.56rem; }
  1103. .component-list { grid-template-columns: 1fr; }
  1104. }
  1105. @media (prefers-reduced-motion: reduce) {
  1106. *,
  1107. *::before,
  1108. *::after {
  1109. scroll-behavior: auto !important;
  1110. transition-duration: 0.001ms !important;
  1111. animation-duration: 0.001ms !important;
  1112. }
  1113. }