WebOrbiton
v1.5.0

AtheraStudio Code

4,773 lines · 87.1 KB
  1. :root {
  2. --ath-font-code: "geist-mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  3. --ath-font-size: 14px;
  4. --ath-topbar-h: 46px;
  5. --ath-status-h: 26px;
  6. ​
  7. --ath-editor-bg: var(--orb-surface);
  8. --ath-active-line: color-mix(in srgb, var(--orb-primary) 5%, transparent);
  9. --ath-selection: color-mix(in srgb, var(--orb-primary) 22%, transparent);
  10. --ath-selection-match: color-mix(in srgb, var(--orb-primary) 12%, transparent);
  11. ​
  12. --ath-syn-keyword: #7c3aed;
  13. --ath-syn-string: #0a7f55;
  14. --ath-syn-number: #c2410c;
  15. --ath-syn-comment: #8b95a7;
  16. --ath-syn-tag: #d6336c;
  17. --ath-syn-attr: #b45309;
  18. --ath-syn-property: #1d4ed8;
  19. --ath-syn-function: #0e7490;
  20. --ath-syn-type: #a21caf;
  21. --ath-syn-variable: var(--orb-text);
  22. --ath-syn-punct: #64748b;
  23. --ath-syn-meta: #64748b;
  24. --ath-syn-regexp: #db2777;
  25. }
  26. ​
  27. .orb-dark {
  28. --ath-active-line: rgba(255, 255, 255, 0.03);
  29. --ath-selection: color-mix(in srgb, var(--orb-primary) 32%, transparent);
  30. ​
  31. --ath-syn-keyword: #c4b5fd;
  32. --ath-syn-string: #86efac;
  33. --ath-syn-number: #fdba74;
  34. --ath-syn-comment: #61667a;
  35. --ath-syn-tag: #fb7185;
  36. --ath-syn-attr: #fcd34d;
  37. --ath-syn-property: #93c5fd;
  38. --ath-syn-function: #67e8f9;
  39. --ath-syn-type: #f0abfc;
  40. --ath-syn-punct: #9ca3af;
  41. --ath-syn-meta: #9ca3af;
  42. --ath-syn-regexp: #f9a8d4;
  43. }
  44. ​
  45. html,
  46. body {
  47. height: 100%;
  48. overflow: hidden;
  49. }
  50. ​
  51. body {
  52. background: var(--orb-bg);
  53. font-size: 14px;
  54. }
  55. ​
  56. .ath-icon {
  57. width: 16px;
  58. height: 16px;
  59. flex-shrink: 0;
  60. }
  61. ​
  62. [hidden] {
  63. display: none !important;
  64. }
  65. ​
  66. * {
  67. scrollbar-width: thin;
  68. scrollbar-color: var(--orb-border-strong) transparent;
  69. }
  70. ​
  71. ::-webkit-scrollbar {
  72. width: 10px;
  73. height: 10px;
  74. }
  75. ​
  76. ::-webkit-scrollbar-track {
  77. background: transparent;
  78. }
  79. ​
  80. ::-webkit-scrollbar-thumb {
  81. background: var(--orb-border-strong);
  82. border: 3px solid transparent;
  83. border-radius: 10px;
  84. background-clip: padding-box;
  85. }
  86. ​
  87. ::-webkit-scrollbar-thumb:hover {
  88. background-color: var(--orb-text-subtle);
  89. }
  90. ​
  91. ::-webkit-scrollbar-corner {
  92. background: transparent;
  93. }
  94. ​
  95. .ath-shell {
  96. height: 100vh;
  97. height: 100dvh;
  98. display: grid;
  99. grid-template-rows: var(--ath-topbar-h) minmax(0, 1fr) var(--ath-status-h);
  100. }
  101. ​
  102. .ath-topbar {
  103. position: relative;
  104. z-index: 100;
  105. display: flex;
  106. align-items: center;
  107. gap: var(--orb-space-4);
  108. padding: 0 var(--orb-space-3);
  109. background: var(--orb-bg);
  110. border-bottom: 1px solid var(--orb-border);
  111. }
  112. ​
  113. .ath-brand {
  114. display: flex;
  115. align-items: center;
  116. gap: 9px;
  117. color: var(--orb-text);
  118. white-space: nowrap;
  119. }
  120. ​
  121. .ath-logo {
  122. width: 28px;
  123. height: 28px;
  124. object-fit: contain;
  125. }
  126. ​
  127. .ath-brand-name {
  128. font-size: 0.875rem;
  129. font-weight: 500;
  130. letter-spacing: -0.01em;
  131. }
  132. ​
  133. .ath-brand-name b {
  134. font-weight: 700;
  135. color: var(--orb-primary-text);
  136. }
  137. ​
  138. .ath-menus {
  139. display: flex;
  140. align-items: center;
  141. gap: 2px;
  142. }
  143. ​
  144. .ath-menu-btn {
  145. height: 30px;
  146. padding: 0 10px;
  147. border: none;
  148. border-radius: var(--orb-radius-sm);
  149. background: transparent;
  150. color: var(--orb-text-muted);
  151. font-size: 0.8125rem;
  152. font-weight: 500;
  153. cursor: pointer;
  154. transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
  155. }
  156. ​
  157. .ath-menu-btn:hover,
  158. .ath-menu-btn[aria-expanded="true"] {
  159. background: var(--orb-surface-alt);
  160. color: var(--orb-text);
  161. }
  162. ​
  163. .ath-menu-btn:focus-visible {
  164. outline: 2px solid var(--orb-primary);
  165. outline-offset: 1px;
  166. }
  167. ​
  168. .orb-kbd {
  169. flex-shrink: 0;
  170. white-space: nowrap;
  171. }
  172. ​
  173. .ath-menus .orb-dropdown-menu {
  174. min-width: 250px;
  175. width: max-content;
  176. }
  177. ​
  178. .ath-menus .orb-dropdown-item>span:not(.orb-kbd),
  179. .ath-context-menu .orb-dropdown-item>span:not(.orb-kbd) {
  180. white-space: nowrap;
  181. }
  182. ​
  183. .ath-menus .orb-dropdown-item {
  184. font-size: 0.8125rem;
  185. padding: 7px 10px;
  186. }
  187. ​
  188. .ath-topbar-actions {
  189. margin-left: auto;
  190. display: flex;
  191. align-items: center;
  192. gap: 4px;
  193. }
  194. ​
  195. #btn-preview[aria-pressed="true"] {
  196. color: var(--orb-primary-text);
  197. background: var(--orb-primary-dim);
  198. }
  199. ​
  200. .ath-theme-btn .ath-when-dark,
  201. .orb-dark .ath-theme-btn .ath-when-light {
  202. display: none;
  203. }
  204. ​
  205. .orb-dark .ath-theme-btn .ath-when-dark {
  206. display: inline-flex;
  207. }
  208. ​
  209. .ath-theme-btn span {
  210. display: inline-flex;
  211. }
  212. ​
  213. .ath-accent-menu {
  214. min-width: 0;
  215. padding: var(--orb-space-3) var(--orb-space-4) var(--orb-space-4);
  216. }
  217. ​
  218. .ath-accent-label {
  219. font-size: 0.6875rem;
  220. font-weight: 700;
  221. text-transform: uppercase;
  222. letter-spacing: 0.06em;
  223. color: var(--orb-text-subtle);
  224. margin-bottom: var(--orb-space-3);
  225. }
  226. ​
  227. .ath-accent-grid {
  228. display: grid;
  229. grid-template-columns: repeat(4, 28px);
  230. gap: 10px;
  231. }
  232. ​
  233. .ath-main {
  234. position: relative;
  235. display: flex;
  236. min-height: 0;
  237. overflow: hidden;
  238. }
  239. ​
  240. .ath-pane-head {
  241. display: flex;
  242. align-items: center;
  243. gap: var(--orb-space-2);
  244. height: 36px;
  245. flex-shrink: 0;
  246. padding: 0 6px 0 14px;
  247. }
  248. ​
  249. .ath-pane-title {
  250. font-size: 0.6875rem;
  251. font-weight: 700;
  252. text-transform: uppercase;
  253. letter-spacing: 0.06em;
  254. color: var(--orb-text-muted);
  255. white-space: nowrap;
  256. overflow: hidden;
  257. text-overflow: ellipsis;
  258. min-width: 0;
  259. }
  260. ​
  261. .ath-pane-actions {
  262. margin-left: auto;
  263. display: flex;
  264. gap: 2px;
  265. flex-shrink: 0;
  266. }
  267. ​
  268. .ath-icon-btn {
  269. width: 26px;
  270. height: 26px;
  271. display: grid;
  272. place-items: center;
  273. border: none;
  274. border-radius: var(--orb-radius-xs);
  275. background: transparent;
  276. color: var(--orb-text-muted);
  277. cursor: pointer;
  278. transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
  279. }
  280. ​
  281. .ath-icon-btn:hover {
  282. background: var(--orb-surface-hover);
  283. color: var(--orb-text);
  284. }
  285. ​
  286. .ath-icon-btn:disabled {
  287. opacity: 0.4;
  288. cursor: default;
  289. background: transparent;
  290. color: var(--orb-text-muted);
  291. }
  292. ​
  293. .ath-icon-btn:focus-visible {
  294. outline: 2px solid var(--orb-primary);
  295. outline-offset: -2px;
  296. }
  297. ​
  298. .ath-sidebar {
  299. width: var(--ath-sidebar-w, 250px);
  300. flex-shrink: 0;
  301. display: flex;
  302. flex-direction: column;
  303. min-height: 0;
  304. background: var(--orb-bg);
  305. }
  306. ​
  307. .ath-explorer {
  308. flex: 1;
  309. min-height: 0;
  310. overflow: auto;
  311. padding: 2px 0 24px;
  312. font-size: 0.8125rem;
  313. outline: none;
  314. }
  315. ​
  316. .ath-tree-row {
  317. display: flex;
  318. align-items: center;
  319. gap: 5px;
  320. height: 26px;
  321. padding: 0 10px 0 calc(8px + var(--depth, 0) * 14px);
  322. color: var(--orb-text);
  323. white-space: nowrap;
  324. cursor: pointer;
  325. user-select: none;
  326. outline: none;
  327. position: relative;
  328. transition:
  329. background-color var(--orb-dur) var(--orb-ease),
  330. color var(--orb-dur) var(--orb-ease),
  331. box-shadow var(--orb-dur) var(--orb-ease),
  332. opacity var(--orb-dur) var(--orb-ease);
  333. }
  334. ​
  335. .ath-tree-row::before {
  336. content: "";
  337. position: absolute;
  338. left: 0;
  339. top: 4px;
  340. bottom: 4px;
  341. width: 2px;
  342. border-radius: 0 2px 2px 0;
  343. background: var(--orb-primary);
  344. opacity: 0;
  345. transform: scaleY(0.2);
  346. transition:
  347. opacity var(--orb-dur) var(--orb-ease),
  348. transform var(--orb-dur-slow) var(--orb-ease-spring);
  349. pointer-events: none;
  350. }
  351. ​
  352. .ath-tree-row.is-selected::before,
  353. .ath-tree-row.is-active::before {
  354. opacity: 1;
  355. transform: scaleY(1);
  356. }
  357. ​
  358. .ath-tree-row:hover {
  359. background: var(--orb-surface-hover);
  360. }
  361. ​
  362. .ath-tree-row:hover .ath-tree-chevron {
  363. color: var(--orb-text-muted);
  364. }
  365. ​
  366. .ath-tree-row:active .ath-ficon {
  367. transform: scale(0.92);
  368. }
  369. ​
  370. .ath-tree-row.is-entering {
  371. animation: ath-row-in var(--orb-dur-slow) var(--orb-ease-out) both;
  372. animation-delay: calc(var(--i, 0) * 18ms);
  373. }
  374. ​
  375. @keyframes ath-row-in {
  376. from {
  377. opacity: 0;
  378. transform: translateX(-10px);
  379. }
  380. ​
  381. to {
  382. opacity: 1;
  383. transform: none;
  384. }
  385. }
  386. ​
  387. @keyframes ath-ficon-pop {
  388. 0% {
  389. transform: scale(0.7);
  390. }
  391. ​
  392. 60% {
  393. transform: scale(1.18);
  394. }
  395. ​
  396. 100% {
  397. transform: scale(1);
  398. }
  399. }
  400. ​
  401. .ath-tree-row.is-selected {
  402. background: var(--orb-surface-hover);
  403. }
  404. ​
  405. .ath-tree-row.is-selected .ath-ficon,
  406. .ath-tree-row.is-active .ath-ficon {
  407. transform: scale(1.06);
  408. }
  409. ​
  410. .ath-tree-row.is-multi {
  411. background: var(--orb-primary-dim);
  412. }
  413. ​
  414. .ath-tree-row.is-active {
  415. background: var(--orb-primary-dim);
  416. color: var(--orb-primary-text);
  417. }
  418. ​
  419. .ath-tree-row:focus-visible {
  420. box-shadow: inset 0 0 0 1px var(--orb-primary);
  421. }
  422. ​
  423. .ath-tree-row.is-dragging {
  424. opacity: 0.45;
  425. }
  426. ​
  427. .ath-tree-row.is-drop-target {
  428. background: var(--orb-primary-dim-strong);
  429. color: var(--orb-primary-text);
  430. box-shadow: inset 0 0 0 1px var(--orb-primary-border);
  431. }
  432. ​
  433. .ath-explorer.is-drop-root {
  434. box-shadow: inset 0 0 0 2px var(--orb-primary-border);
  435. background: var(--orb-primary-dim);
  436. }
  437. ​
  438. .ath-tree-chevron {
  439. width: 14px;
  440. display: grid;
  441. place-items: center;
  442. flex-shrink: 0;
  443. color: var(--orb-text-subtle);
  444. transition: color var(--orb-dur) var(--orb-ease);
  445. }
  446. ​
  447. .ath-tree-chevron .ath-icon {
  448. width: 12px;
  449. height: 12px;
  450. transition: transform var(--orb-dur) var(--orb-ease-spring);
  451. }
  452. ​
  453. .ath-tree-row.is-open .ath-tree-chevron .ath-icon {
  454. transform: rotate(90deg);
  455. }
  456. ​
  457. .ath-tree-name {
  458. overflow: hidden;
  459. text-overflow: ellipsis;
  460. }
  461. ​
  462. .ath-ficon {
  463. width: 20px;
  464. flex-shrink: 0;
  465. display: inline-flex;
  466. align-items: center;
  467. justify-content: center;
  468. font-family: var(--ath-font-code);
  469. font-size: 9px;
  470. font-weight: 800;
  471. letter-spacing: -0.03em;
  472. color: var(--orb-text-muted);
  473. transition:
  474. transform var(--orb-dur) var(--orb-ease-spring),
  475. color var(--orb-dur) var(--orb-ease);
  476. }
  477. ​
  478. .ath-ficon.is-toggled {
  479. animation: ath-ficon-pop var(--orb-dur-spring) var(--orb-ease-out);
  480. }
  481. ​
  482. .ath-ficon .ath-icon {
  483. width: 15px;
  484. height: 15px;
  485. }
  486. ​
  487. .ath-ficon-dir {
  488. color: color-mix(in srgb, var(--orb-primary) 70%, var(--orb-text-muted));
  489. }
  490. ​
  491. .ath-ficon[data-type="html"] {
  492. color: var(--orb-orange);
  493. }
  494. ​
  495. .ath-ficon[data-type="php"] {
  496. color: var(--orb-indigo);
  497. }
  498. ​
  499. .ath-ficon[data-type="css"] {
  500. color: var(--orb-sky);
  501. font-size: 12px;
  502. }
  503. ​
  504. .ath-ficon[data-type="js"] {
  505. color: var(--orb-gold);
  506. }
  507. ​
  508. .ath-ficon[data-type="ts"] {
  509. color: var(--orb-cobalt);
  510. }
  511. ​
  512. .ath-ficon[data-type="json"] {
  513. color: var(--orb-amber);
  514. }
  515. ​
  516. .ath-ficon[data-type="md"] {
  517. color: var(--orb-slate);
  518. }
  519. ​
  520. .ath-ficon[data-type="img"] {
  521. color: var(--orb-emerald);
  522. }
  523. ​
  524. .ath-ficon[data-type="xml"] {
  525. color: #0d9488;
  526. }
  527. ​
  528. .ath-ficon[data-type="rss"] {
  529. color: #f97316;
  530. }
  531. ​
  532. .ath-ficon[data-type="sitemap"] {
  533. color: var(--orb-emerald);
  534. }
  535. ​
  536. .orb-dark .ath-ficon[data-type="xml"] {
  537. color: #2dd4bf;
  538. }
  539. ​
  540. .orb-dark .ath-ficon[data-type="php"] {
  541. color: var(--orb-lavender);
  542. }
  543. ​
  544. .orb-dark .ath-ficon[data-type="ts"] {
  545. color: #60a5fa;
  546. }
  547. ​
  548. .orb-dark .ath-ficon[data-type="md"] {
  549. color: var(--orb-text-muted);
  550. }
  551. ​
  552. .ath-sidebar-empty {
  553. display: flex;
  554. flex-direction: column;
  555. gap: var(--orb-space-2);
  556. padding: var(--orb-space-2) var(--orb-space-4) var(--orb-space-4);
  557. font-size: 0.8125rem;
  558. color: var(--orb-text-muted);
  559. }
  560. ​
  561. .ath-sidebar-empty p {
  562. margin-bottom: var(--orb-space-1);
  563. }
  564. ​
  565. .ath-hint {
  566. font-size: 0.75rem;
  567. color: var(--orb-text-subtle);
  568. margin-top: var(--orb-space-2);
  569. line-height: 1.5;
  570. }
  571. ​
  572. .ath-tree-spacer {
  573. position: relative;
  574. min-height: 1px;
  575. }
  576. ​
  577. .ath-tree-window {
  578. position: absolute;
  579. top: 0;
  580. left: 0;
  581. right: 0;
  582. will-change: transform;
  583. }
  584. ​
  585. .ath-tree-row.is-loading {
  586. color: var(--orb-text-subtle);
  587. cursor: default;
  588. }
  589. ​
  590. .ath-tree-message {
  591. padding: var(--orb-space-3) var(--orb-space-4);
  592. color: var(--orb-text-subtle);
  593. font-size: 0.8125rem;
  594. }
  595. ​
  596. .ath-tree-message.is-error {
  597. color: var(--orb-danger);
  598. }
  599. ​
  600. .ath-spinner.ath-spinner-sm {
  601. width: 13px;
  602. height: 13px;
  603. border-width: 2px;
  604. margin: 0 3px;
  605. }
  606. ​
  607. .ath-splitter {
  608. position: relative;
  609. z-index: 5;
  610. flex: 0 0 5px;
  611. margin: 0 -2px;
  612. cursor: col-resize;
  613. touch-action: none;
  614. }
  615. ​
  616. .ath-splitter::after {
  617. content: "";
  618. position: absolute;
  619. top: 0;
  620. bottom: 0;
  621. left: 2px;
  622. width: 1px;
  623. background: var(--orb-border);
  624. transition: background-color var(--orb-dur) var(--orb-ease), width var(--orb-dur) var(--orb-ease), left var(--orb-dur) var(--orb-ease);
  625. }
  626. ​
  627. .ath-splitter:hover::after,
  628. .ath-resizing .ath-splitter:active::after {
  629. left: 1px;
  630. width: 3px;
  631. background: var(--orb-primary);
  632. }
  633. ​
  634. body.ath-resizing {
  635. cursor: col-resize;
  636. user-select: none;
  637. }
  638. ​
  639. body.ath-resizing iframe {
  640. pointer-events: none;
  641. }
  642. ​
  643. body.ath-no-sidebar .ath-sidebar,
  644. body.ath-no-sidebar [data-split="sidebar"],
  645. body.ath-no-preview .ath-preview,
  646. body.ath-no-preview [data-split="preview"] {
  647. display: none;
  648. }
  649. ​
  650. .ath-center {
  651. flex: 1;
  652. min-width: 0;
  653. display: flex;
  654. flex-direction: column;
  655. background: var(--ath-editor-bg);
  656. }
  657. ​
  658. .ath-tabs {
  659. display: flex;
  660. height: 38px;
  661. flex-shrink: 0;
  662. overflow-x: auto;
  663. overflow-y: hidden;
  664. scrollbar-width: none;
  665. background: var(--orb-bg);
  666. box-shadow: inset 0 -1px 0 var(--orb-border);
  667. }
  668. ​
  669. .ath-tabs::-webkit-scrollbar {
  670. display: none;
  671. }
  672. ​
  673. .ath-tabs:empty {
  674. display: none;
  675. }
  676. ​
  677. .ath-tab {
  678. position: relative;
  679. flex: none;
  680. display: flex;
  681. align-items: center;
  682. gap: 6px;
  683. max-width: 230px;
  684. padding: 0 6px 0 10px;
  685. border-right: 1px solid var(--orb-border);
  686. font-size: 0.8125rem;
  687. color: var(--orb-text-muted);
  688. cursor: pointer;
  689. user-select: none;
  690. transition:
  691. background-color var(--orb-dur) var(--orb-ease),
  692. color var(--orb-dur) var(--orb-ease),
  693. opacity var(--orb-dur) var(--orb-ease);
  694. }
  695. ​
  696. .ath-tab::before {
  697. content: "";
  698. position: absolute;
  699. left: 0;
  700. right: 0;
  701. top: 0;
  702. height: 2px;
  703. background: var(--orb-primary);
  704. transform: scaleX(0);
  705. transform-origin: center center;
  706. transition: transform var(--orb-dur-slow) var(--orb-ease-out);
  707. pointer-events: none;
  708. }
  709. ​
  710. .ath-tab:hover {
  711. background: var(--orb-surface-alt);
  712. color: var(--orb-text);
  713. }
  714. ​
  715. .ath-tab.is-active {
  716. background: var(--ath-editor-bg);
  717. color: var(--orb-text);
  718. }
  719. ​
  720. .ath-tab.is-active::before {
  721. transform: scaleX(1);
  722. }
  723. ​
  724. .ath-tab.is-entering {
  725. overflow: hidden;
  726. animation: ath-tab-in var(--orb-dur-slow) var(--orb-ease-out) both;
  727. }
  728. ​
  729. .ath-tab.is-leaving {
  730. overflow: hidden;
  731. pointer-events: none;
  732. animation: ath-tab-out var(--orb-dur) var(--orb-ease) forwards;
  733. }
  734. ​
  735. .ath-tab.is-dragging {
  736. opacity: 0.4;
  737. }
  738. ​
  739. .ath-tab-marker {
  740. position: fixed;
  741. left: 0;
  742. top: 0;
  743. width: 2px;
  744. margin-left: -1px;
  745. border-radius: 2px;
  746. background: var(--orb-primary);
  747. box-shadow: 0 0 0 1px var(--orb-primary-dim-strong), 0 0 8px var(--orb-primary);
  748. opacity: 0;
  749. pointer-events: none;
  750. z-index: 60;
  751. transition:
  752. opacity var(--orb-dur-fast) var(--orb-ease),
  753. transform 90ms var(--orb-ease-out);
  754. }
  755. ​
  756. .ath-tab-marker.is-visible {
  757. opacity: 1;
  758. }
  759. ​
  760. @keyframes ath-tab-in {
  761. from {
  762. opacity: 0;
  763. max-width: 0;
  764. padding-left: 0;
  765. padding-right: 0;
  766. }
  767. ​
  768. to {
  769. opacity: 1;
  770. max-width: 230px;
  771. padding-left: 10px;
  772. padding-right: 6px;
  773. }
  774. }
  775. ​
  776. @keyframes ath-tab-out {
  777. from {
  778. opacity: 1;
  779. width: var(--w);
  780. max-width: var(--w);
  781. }
  782. ​
  783. to {
  784. opacity: 0;
  785. width: 0;
  786. max-width: 0;
  787. padding-left: 0;
  788. padding-right: 0;
  789. border-right-width: 0;
  790. }
  791. }
  792. ​
  793. .ath-tab-name {
  794. overflow: hidden;
  795. text-overflow: ellipsis;
  796. white-space: nowrap;
  797. }
  798. ​
  799. .ath-tab-close {
  800. width: 22px;
  801. height: 22px;
  802. flex-shrink: 0;
  803. display: grid;
  804. place-items: center;
  805. border: none;
  806. border-radius: var(--orb-radius-xs);
  807. background: transparent;
  808. color: var(--orb-text-muted);
  809. cursor: pointer;
  810. opacity: 0;
  811. }
  812. ​
  813. .ath-tab-close .ath-icon {
  814. width: 14px;
  815. height: 14px;
  816. }
  817. ​
  818. .ath-tab:hover .ath-tab-close,
  819. .ath-tab.is-active .ath-tab-close,
  820. .ath-tab.is-dirty .ath-tab-close,
  821. .ath-tab-close:focus-visible {
  822. opacity: 1;
  823. }
  824. ​
  825. .ath-tab-close:hover {
  826. background: var(--orb-surface-hover);
  827. color: var(--orb-text);
  828. }
  829. ​
  830. .ath-tab-dot {
  831. display: none;
  832. width: 8px;
  833. height: 8px;
  834. border-radius: 50%;
  835. background: currentColor;
  836. }
  837. ​
  838. .ath-tab.is-dirty .ath-tab-close:not(:hover) .ath-icon {
  839. display: none;
  840. }
  841. ​
  842. .ath-tab.is-dirty .ath-tab-close:not(:hover) .ath-tab-dot {
  843. display: block;
  844. }
  845. ​
  846. .ath-tab.is-dirty .ath-tab-close {
  847. color: var(--orb-text);
  848. }
  849. ​
  850. .ath-editor-area {
  851. position: relative;
  852. flex: 1;
  853. min-height: 0;
  854. }
  855. ​
  856. .ath-editor-host,
  857. .ath-image-view,
  858. .ath-welcome {
  859. position: absolute;
  860. inset: 0;
  861. display: none;
  862. }
  863. ​
  864. body[data-view="editor"] .ath-editor-host {
  865. display: block;
  866. }
  867. ​
  868. body[data-view="image"] .ath-image-view {
  869. display: grid;
  870. }
  871. ​
  872. body[data-view="welcome"] .ath-welcome {
  873. display: flex;
  874. }
  875. ​
  876. .ath-editor-host .cm-editor {
  877. height: 100%;
  878. }
  879. ​
  880. .ath-editor-host.has-minimap .cm-editor {
  881. width: calc(100% - 88px);
  882. }
  883. ​
  884. .ath-minimap {
  885. --ath-minimap-code: color-mix(in srgb, var(--orb-text-muted) 72%, transparent);
  886. --ath-minimap-selection: color-mix(in srgb, var(--orb-primary) 20%, transparent);
  887. --ath-minimap-cursor: var(--orb-primary);
  888. position: absolute;
  889. inset: 8px 8px 8px auto;
  890. width: 80px;
  891. overflow: hidden;
  892. border: 1px solid var(--orb-border);
  893. border-radius: 8px;
  894. background: linear-gradient(180deg, var(--orb-surface) 0%, var(--orb-surface-alt) 100%);
  895. box-shadow: 0 2px 8px color-mix(in srgb, var(--orb-text) 5%, transparent);
  896. cursor: pointer;
  897. touch-action: none;
  898. animation: ath-minimap-in var(--orb-dur-slow) var(--orb-ease-spring) both;
  899. transition:
  900. border-color var(--orb-dur) var(--orb-ease),
  901. box-shadow var(--orb-dur) var(--orb-ease),
  902. background-color var(--orb-dur) var(--orb-ease);
  903. }
  904. ​
  905. .ath-minimap:hover {
  906. border-color: var(--orb-border-strong);
  907. box-shadow: 0 4px 16px color-mix(in srgb, var(--orb-text) 9%, transparent);
  908. }
  909. ​
  910. .ath-minimap.is-dragging {
  911. cursor: grabbing;
  912. }
  913. ​
  914. .ath-minimap canvas {
  915. display: block;
  916. width: 100%;
  917. height: 100%;
  918. padding: 0;
  919. box-sizing: border-box;
  920. opacity: 0.76;
  921. pointer-events: none;
  922. transition: opacity var(--orb-dur) var(--orb-ease);
  923. }
  924. ​
  925. .ath-minimap:hover canvas {
  926. opacity: 1;
  927. }
  928. ​
  929. .ath-minimap-viewport {
  930. position: absolute;
  931. right: 4px;
  932. left: 4px;
  933. z-index: 1;
  934. box-sizing: border-box;
  935. border: 1px solid color-mix(in srgb, var(--orb-primary) 55%, transparent);
  936. border-radius: 5px;
  937. background: linear-gradient(110deg,
  938. color-mix(in srgb, var(--orb-primary) 13%, transparent),
  939. color-mix(in srgb, var(--orb-primary) 8%, transparent));
  940. box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orb-surface) 35%, transparent);
  941. pointer-events: none;
  942. transition:
  943. border-color var(--orb-dur) var(--orb-ease),
  944. background-color var(--orb-dur) var(--orb-ease);
  945. }
  946. ​
  947. .ath-minimap-markers {
  948. position: absolute;
  949. inset: 0;
  950. z-index: 2;
  951. overflow: hidden;
  952. pointer-events: none;
  953. }
  954. ​
  955. .ath-minimap-selection {
  956. position: absolute;
  957. right: 7px;
  958. left: 7px;
  959. border-left: 2px solid var(--orb-primary);
  960. border-radius: 2px;
  961. background: var(--ath-minimap-selection);
  962. }
  963. ​
  964. .ath-minimap-cursor {
  965. position: absolute;
  966. right: 6px;
  967. left: 6px;
  968. height: 1px;
  969. border-radius: 2px;
  970. background: var(--ath-minimap-cursor);
  971. box-shadow: 0 0 5px color-mix(in srgb, var(--orb-primary) 70%, transparent);
  972. }
  973. ​
  974. .ath-minimap:hover .ath-minimap-viewport {
  975. border-color: color-mix(in srgb, var(--orb-primary) 80%, transparent);
  976. background: color-mix(in srgb, var(--orb-primary) 17%, transparent);
  977. }
  978. ​
  979. .ath-minimap.is-dragging .ath-minimap-viewport {
  980. transition: none;
  981. }
  982. ​
  983. @keyframes ath-minimap-in {
  984. from {
  985. opacity: 0;
  986. transform: translateX(8px);
  987. }
  988. ​
  989. to {
  990. opacity: 1;
  991. transform: none;
  992. }
  993. }
  994. ​
  995. .ath-minimap:focus-visible {
  996. outline: 2px solid var(--orb-primary);
  997. outline-offset: -2px;
  998. }
  999. ​
  1000. @media (max-width: 720px) {
  1001. .ath-editor-host.has-minimap .cm-editor {
  1002. width: 100%;
  1003. }
  1004. ​
  1005. .ath-minimap {
  1006. display: none;
  1007. }
  1008. }
  1009. ​
  1010. @media (prefers-reduced-motion: reduce) {
  1011. .ath-minimap,
  1012. .ath-minimap canvas,
  1013. .ath-minimap-viewport {
  1014. animation: none !important;
  1015. transition: none !important;
  1016. }
  1017. }
  1018. ​
  1019. .ath-image-view {
  1020. place-items: center;
  1021. padding: var(--orb-space-8);
  1022. overflow: auto;
  1023. background-color: var(--orb-surface-alt);
  1024. background-image: conic-gradient(var(--orb-surface-hover) 25%, transparent 0 50%, var(--orb-surface-hover) 0 75%, transparent 0);
  1025. background-size: 20px 20px;
  1026. }
  1027. ​
  1028. .ath-image-view img {
  1029. max-width: 100%;
  1030. max-height: 100%;
  1031. object-fit: contain;
  1032. box-shadow: var(--orb-shadow-md);
  1033. }
  1034. ​
  1035. .ath-welcome {
  1036. overflow: auto;
  1037. align-items: center;
  1038. justify-content: center;
  1039. padding: var(--orb-space-8) var(--orb-space-4);
  1040. background:
  1041. radial-gradient(600px 300px at 50% 0%, var(--orb-primary-dim), transparent 70%),
  1042. var(--ath-editor-bg);
  1043. }
  1044. ​
  1045. .ath-welcome-inner {
  1046. max-width: 560px;
  1047. width: 100%;
  1048. text-align: center;
  1049. margin: auto;
  1050. }
  1051. ​
  1052. .ath-welcome-logo {
  1053. display: block;
  1054. width: 104px;
  1055. height: 104px;
  1056. margin: 0 auto var(--orb-space-4);
  1057. object-fit: contain;
  1058. filter: drop-shadow(0 10px 24px rgba(3, 3, 26, 0.35));
  1059. }
  1060. ​
  1061. .ath-welcome .orb-lead {
  1062. margin: var(--orb-space-3) auto 0;
  1063. }
  1064. ​
  1065. .ath-welcome-actions {
  1066. display: flex;
  1067. flex-wrap: wrap;
  1068. justify-content: center;
  1069. gap: var(--orb-space-3);
  1070. margin: var(--orb-space-6) 0 var(--orb-space-3);
  1071. }
  1072. ​
  1073. .ath-recent {
  1074. margin-bottom: var(--orb-space-2);
  1075. }
  1076. ​
  1077. .ath-limited {
  1078. text-align: left;
  1079. margin-top: var(--orb-space-5);
  1080. }
  1081. ​
  1082. .ath-shortcuts {
  1083. display: grid;
  1084. grid-template-columns: repeat(2, minmax(0, 1fr));
  1085. gap: var(--orb-space-3) var(--orb-space-6);
  1086. margin-top: var(--orb-space-8);
  1087. padding-top: var(--orb-space-6);
  1088. border-top: 1px solid var(--orb-border);
  1089. text-align: left;
  1090. }
  1091. ​
  1092. .ath-shortcuts>div {
  1093. display: flex;
  1094. align-items: center;
  1095. gap: 4px;
  1096. font-size: 0.8125rem;
  1097. color: var(--orb-text-muted);
  1098. }
  1099. ​
  1100. .ath-shortcuts>div>span:last-child {
  1101. margin-left: 6px;
  1102. }
  1103. ​
  1104. .ath-preview {
  1105. width: var(--ath-preview-w, 42%);
  1106. flex-shrink: 0;
  1107. min-width: 0;
  1108. display: flex;
  1109. flex-direction: column;
  1110. background: var(--orb-bg);
  1111. }
  1112. ​
  1113. .ath-preview-status {
  1114. display: inline-flex;
  1115. align-items: center;
  1116. gap: 4px;
  1117. padding: 2px 8px;
  1118. border: none;
  1119. border-radius: var(--orb-radius-full);
  1120. background: var(--orb-danger-dim);
  1121. color: var(--orb-danger);
  1122. font-size: 0.71875rem;
  1123. font-weight: 700;
  1124. cursor: pointer;
  1125. white-space: nowrap;
  1126. }
  1127. ​
  1128. .ath-preview-status .ath-icon {
  1129. width: 13px;
  1130. height: 13px;
  1131. }
  1132. ​
  1133. .ath-preview-body {
  1134. position: relative;
  1135. flex: 1;
  1136. min-height: 0;
  1137. margin: 0 8px 8px;
  1138. border: 1px solid var(--orb-border);
  1139. border-radius: var(--orb-radius-md);
  1140. overflow: hidden;
  1141. background: #ffffff;
  1142. }
  1143. ​
  1144. .ath-pane-actions .orb-dropdown {
  1145. display: flex;
  1146. }
  1147. ​
  1148. .ath-icon-btn.is-active {
  1149. color: var(--orb-primary-text);
  1150. background: var(--orb-primary-dim);
  1151. }
  1152. ​
  1153. .ath-device-menu {
  1154. width: max-content;
  1155. min-width: 250px;
  1156. }
  1157. ​
  1158. .ath-device-list {
  1159. max-height: min(60vh, 400px);
  1160. overflow-y: auto;
  1161. overscroll-behavior: contain;
  1162. }
  1163. ​
  1164. .ath-device-item {
  1165. white-space: nowrap;
  1166. }
  1167. ​
  1168. .ath-device-item:disabled {
  1169. opacity: 0.4;
  1170. cursor: default;
  1171. }
  1172. ​
  1173. .ath-device-menu .ath-accent-label {
  1174. padding: 6px 10px 0;
  1175. margin-bottom: 6px;
  1176. }
  1177. ​
  1178. .ath-device-menu .ath-accent-label:not(:first-child) {
  1179. margin-top: 8px;
  1180. }
  1181. ​
  1182. .ath-device-menu .orb-dropdown-item {
  1183. font-size: 0.8125rem;
  1184. padding: 7px 10px;
  1185. }
  1186. ​
  1187. .ath-device-item.is-current {
  1188. color: var(--orb-primary-text);
  1189. font-weight: 600;
  1190. }
  1191. ​
  1192. .ath-device-size {
  1193. margin-left: auto;
  1194. font-size: 0.6875rem;
  1195. font-weight: 400;
  1196. color: var(--orb-text-subtle);
  1197. font-variant-numeric: tabular-nums;
  1198. white-space: nowrap;
  1199. }
  1200. ​
  1201. .ath-device-ph {
  1202. width: 16px;
  1203. height: 16px;
  1204. flex-shrink: 0;
  1205. }
  1206. ​
  1207. .ath-preview-body.is-device {
  1208. background: var(--orb-surface);
  1209. }
  1210. ​
  1211. .ath-preview-body.is-device iframe {
  1212. position: absolute;
  1213. left: 50%;
  1214. top: 50%;
  1215. width: auto;
  1216. height: auto;
  1217. transform: translate(-50%, -50%) scale(var(--ath-device-scale, 1));
  1218. transform-origin: center;
  1219. border-radius: 14px;
  1220. box-shadow: 0 0 0 1px var(--orb-border), var(--orb-shadow-lg);
  1221. }
  1222. ​
  1223. .ath-device-label {
  1224. position: absolute;
  1225. left: 50%;
  1226. bottom: 4px;
  1227. z-index: 1;
  1228. transform: translateX(-50%);
  1229. padding: 1px 8px;
  1230. border-radius: var(--orb-radius-full);
  1231. font-size: 0.6875rem;
  1232. color: var(--orb-text-subtle);
  1233. background: var(--orb-surface);
  1234. white-space: nowrap;
  1235. pointer-events: none;
  1236. }
  1237. ​
  1238. .ath-preview-body iframe {
  1239. display: block;
  1240. width: 100%;
  1241. height: 100%;
  1242. border: 0;
  1243. background: #ffffff;
  1244. }
  1245. ​
  1246. .ath-preview-empty {
  1247. position: absolute;
  1248. inset: 0;
  1249. display: flex;
  1250. flex-direction: column;
  1251. align-items: center;
  1252. justify-content: center;
  1253. gap: var(--orb-space-3);
  1254. padding: var(--orb-space-6);
  1255. text-align: center;
  1256. font-size: 0.8125rem;
  1257. color: var(--orb-text-subtle);
  1258. background: var(--orb-surface);
  1259. }
  1260. ​
  1261. .ath-preview-empty .ath-icon {
  1262. width: 32px;
  1263. height: 32px;
  1264. }
  1265. ​
  1266. .ath-console {
  1267. flex-shrink: 0;
  1268. position: relative;
  1269. display: flex;
  1270. flex-direction: column;
  1271. margin: 0 8px 8px;
  1272. border: 1px solid var(--orb-border);
  1273. border-radius: var(--orb-radius-md);
  1274. background: var(--orb-surface);
  1275. overflow: hidden;
  1276. }
  1277. ​
  1278. .ath-console[hidden] {
  1279. display: none;
  1280. }
  1281. ​
  1282. .ath-console-grip {
  1283. display: none;
  1284. position: absolute;
  1285. top: 0;
  1286. left: 0;
  1287. right: 0;
  1288. height: 6px;
  1289. z-index: 2;
  1290. cursor: ns-resize;
  1291. touch-action: none;
  1292. }
  1293. ​
  1294. .ath-console.is-open .ath-console-grip {
  1295. display: block;
  1296. }
  1297. ​
  1298. .ath-console-head {
  1299. display: flex;
  1300. align-items: center;
  1301. gap: 6px;
  1302. min-height: 32px;
  1303. padding: 0 4px 0 2px;
  1304. }
  1305. ​
  1306. .ath-console-toggle {
  1307. display: inline-flex;
  1308. align-items: center;
  1309. gap: 6px;
  1310. padding: 5px 8px;
  1311. border: 0;
  1312. border-radius: var(--orb-radius-sm);
  1313. background: transparent;
  1314. color: var(--orb-text);
  1315. font: inherit;
  1316. font-size: 0.78125rem;
  1317. font-weight: 600;
  1318. cursor: pointer;
  1319. }
  1320. ​
  1321. .ath-console-toggle:hover {
  1322. background: var(--orb-surface-hover);
  1323. }
  1324. ​
  1325. .ath-console-toggle .ath-icon {
  1326. width: 14px;
  1327. height: 14px;
  1328. transition: transform 0.15s;
  1329. }
  1330. ​
  1331. .ath-console.is-open .ath-console-toggle .ath-icon {
  1332. transform: rotate(90deg);
  1333. }
  1334. ​
  1335. .ath-console-badge {
  1336. padding: 1px 7px;
  1337. border-radius: var(--orb-radius-full);
  1338. font-size: 0.6875rem;
  1339. font-weight: 700;
  1340. }
  1341. ​
  1342. .ath-console-badge.is-error {
  1343. background: var(--orb-danger-dim);
  1344. color: var(--orb-danger);
  1345. }
  1346. ​
  1347. .ath-console-badge.is-warn {
  1348. background: var(--orb-warning-dim);
  1349. color: var(--orb-warning);
  1350. }
  1351. ​
  1352. .ath-console-badge[hidden] {
  1353. display: none;
  1354. }
  1355. ​
  1356. .ath-console-tools {
  1357. display: flex;
  1358. align-items: center;
  1359. gap: 2px;
  1360. margin-left: auto;
  1361. min-width: 0;
  1362. opacity: 0;
  1363. visibility: hidden;
  1364. pointer-events: none;
  1365. }
  1366. ​
  1367. .ath-console.is-open .ath-console-tools {
  1368. opacity: 1;
  1369. visibility: visible;
  1370. pointer-events: auto;
  1371. }
  1372. ​
  1373. .ath-console-filter {
  1374. padding: 3px 8px;
  1375. border: 0;
  1376. border-radius: var(--orb-radius-full);
  1377. background: transparent;
  1378. color: var(--orb-text-muted);
  1379. font: inherit;
  1380. font-size: 0.71875rem;
  1381. font-weight: 600;
  1382. white-space: nowrap;
  1383. cursor: pointer;
  1384. }
  1385. ​
  1386. .ath-console-filter:hover {
  1387. background: var(--orb-surface-hover);
  1388. }
  1389. ​
  1390. .ath-console-filter.is-active {
  1391. background: var(--orb-primary-dim);
  1392. color: var(--orb-primary-text);
  1393. }
  1394. ​
  1395. .ath-console-body {
  1396. display: block;
  1397. height: 0;
  1398. max-height: 60vh;
  1399. overflow: hidden;
  1400. border-top: 0 solid var(--orb-border);
  1401. opacity: 0;
  1402. visibility: hidden;
  1403. font-family: var(--ath-font-code);
  1404. font-size: 0.75rem;
  1405. }
  1406. ​
  1407. .ath-console.is-open .ath-console-body {
  1408. height: var(--ath-console-h, 220px);
  1409. overflow: auto;
  1410. border-top-width: 1px;
  1411. opacity: 1;
  1412. visibility: visible;
  1413. }
  1414. ​
  1415. .ath-console-empty {
  1416. padding: 12px;
  1417. color: var(--orb-text-subtle);
  1418. font-family: inherit;
  1419. }
  1420. ​
  1421. .ath-console-row {
  1422. display: flex;
  1423. align-items: flex-start;
  1424. gap: 8px;
  1425. padding: 3px 10px;
  1426. border-bottom: 1px solid color-mix(in srgb, var(--orb-border) 55%, transparent);
  1427. line-height: 1.55;
  1428. }
  1429. ​
  1430. .ath-console-row.is-error {
  1431. background: var(--orb-danger-dim);
  1432. color: var(--orb-danger);
  1433. }
  1434. ​
  1435. .ath-console-row.is-warn {
  1436. background: var(--orb-warning-dim);
  1437. color: var(--orb-warning);
  1438. }
  1439. ​
  1440. .ath-console-row.is-input {
  1441. color: var(--orb-text-muted);
  1442. }
  1443. ​
  1444. .ath-console-row.is-input .ath-console-lead::before {
  1445. content: "\203A";
  1446. }
  1447. ​
  1448. .ath-console-row.is-result .ath-console-lead::before {
  1449. content: "\2039";
  1450. color: var(--orb-text-subtle);
  1451. }
  1452. ​
  1453. .ath-console-lead {
  1454. flex: 0 0 14px;
  1455. display: inline-flex;
  1456. justify-content: center;
  1457. }
  1458. ​
  1459. .ath-console-lead .ath-icon {
  1460. width: 13px;
  1461. height: 13px;
  1462. margin-top: 3px;
  1463. }
  1464. ​
  1465. .ath-console-tag {
  1466. padding: 0 6px;
  1467. border-radius: var(--orb-radius-sm);
  1468. background: var(--orb-info-dim);
  1469. color: var(--orb-info);
  1470. font-size: 0.65625rem;
  1471. font-weight: 700;
  1472. line-height: 1.7;
  1473. }
  1474. ​
  1475. .ath-console-text {
  1476. flex: 1;
  1477. min-width: 0;
  1478. margin: 0;
  1479. font: inherit;
  1480. white-space: pre-wrap;
  1481. word-break: break-word;
  1482. }
  1483. ​
  1484. .ath-console-repeat {
  1485. padding: 0 6px;
  1486. border-radius: var(--orb-radius-full);
  1487. background: var(--orb-surface-alt);
  1488. color: var(--orb-text-muted);
  1489. font-size: 0.6875rem;
  1490. font-weight: 700;
  1491. }
  1492. ​
  1493. .ath-console-repeat[hidden] {
  1494. display: none;
  1495. }
  1496. ​
  1497. .ath-console-loc {
  1498. flex-shrink: 0;
  1499. padding: 0;
  1500. border: 0;
  1501. background: transparent;
  1502. color: var(--orb-text-subtle);
  1503. font: inherit;
  1504. font-size: 0.6875rem;
  1505. cursor: pointer;
  1506. }
  1507. ​
  1508. .ath-console-loc:not(.is-plain):hover {
  1509. color: var(--orb-primary-text);
  1510. text-decoration: underline;
  1511. }
  1512. ​
  1513. .ath-console-loc.is-plain {
  1514. cursor: default;
  1515. }
  1516. ​
  1517. .ath-console-input {
  1518. display: flex;
  1519. align-items: center;
  1520. gap: 8px;
  1521. padding: 0 10px;
  1522. max-height: 0;
  1523. overflow: hidden;
  1524. border-top: 0 solid var(--orb-border);
  1525. opacity: 0;
  1526. visibility: hidden;
  1527. }
  1528. ​
  1529. .ath-console.is-open .ath-console-input {
  1530. max-height: 48px;
  1531. border-top-width: 1px;
  1532. opacity: 1;
  1533. visibility: visible;
  1534. }
  1535. ​
  1536. .ath-console.is-armed .ath-console-body,
  1537. .ath-console.is-armed .ath-console-input,
  1538. .ath-console.is-armed .ath-console-tools {
  1539. transition:
  1540. height var(--orb-dur-slow) var(--orb-ease-out),
  1541. max-height var(--orb-dur-slow) var(--orb-ease-out),
  1542. border-top-width var(--orb-dur-slow) var(--orb-ease-out),
  1543. opacity var(--orb-dur) var(--orb-ease),
  1544. visibility 0s linear var(--orb-dur-slow);
  1545. }
  1546. ​
  1547. .ath-console.is-armed.is-open .ath-console-body,
  1548. .ath-console.is-armed.is-open .ath-console-input,
  1549. .ath-console.is-armed.is-open .ath-console-tools {
  1550. transition:
  1551. height var(--orb-dur-slow) var(--orb-ease-out),
  1552. max-height var(--orb-dur-slow) var(--orb-ease-out),
  1553. border-top-width var(--orb-dur-slow) var(--orb-ease-out),
  1554. opacity var(--orb-dur) var(--orb-ease) 60ms,
  1555. visibility 0s;
  1556. }
  1557. ​
  1558. .ath-console.is-resizing .ath-console-body {
  1559. transition: none !important;
  1560. }
  1561. ​
  1562. @media (prefers-reduced-motion: reduce) {
  1563. .ath-console .ath-console-body,
  1564. .ath-console .ath-console-input,
  1565. .ath-console .ath-console-tools {
  1566. transition: none !important;
  1567. }
  1568. }
  1569. ​
  1570. .ath-console-prompt {
  1571. color: var(--orb-primary-text);
  1572. font-family: var(--ath-font-code);
  1573. font-weight: 700;
  1574. }
  1575. ​
  1576. .ath-console-input input {
  1577. flex: 1;
  1578. min-width: 0;
  1579. padding: 7px 0;
  1580. border: 0;
  1581. outline: 0;
  1582. background: transparent;
  1583. color: var(--orb-text);
  1584. font-family: var(--ath-font-code);
  1585. font-size: 0.75rem;
  1586. }
  1587. ​
  1588. .ath-statusbar {
  1589. display: flex;
  1590. align-items: center;
  1591. padding: 0 6px;
  1592. font-size: 0.75rem;
  1593. color: var(--orb-text-muted);
  1594. background: var(--orb-bg);
  1595. border-top: 1px solid var(--orb-border);
  1596. white-space: nowrap;
  1597. overflow: hidden;
  1598. }
  1599. ​
  1600. .ath-status-item {
  1601. padding: 0 8px;
  1602. }
  1603. ​
  1604. .ath-status-item:empty {
  1605. display: none;
  1606. }
  1607. ​
  1608. .ath-status-spacer {
  1609. flex: 1;
  1610. }
  1611. ​
  1612. .ath-status-mode {
  1613. padding: 1px 8px;
  1614. border-radius: var(--orb-radius-xs);
  1615. background: var(--orb-primary-dim);
  1616. color: var(--orb-primary-text);
  1617. font-weight: 600;
  1618. overflow: hidden;
  1619. text-overflow: ellipsis;
  1620. }
  1621. ​
  1622. .ath-status-mode.is-limited {
  1623. background: var(--orb-warning-dim);
  1624. color: color-mix(in srgb, var(--orb-warning) 70%, var(--orb-text));
  1625. }
  1626. ​
  1627. .ath-status-brand {
  1628. color: var(--orb-text-subtle);
  1629. }
  1630. ​
  1631. .ath-dialog .orb-modal-close .ath-icon {
  1632. width: 18px;
  1633. height: 18px;
  1634. }
  1635. ​
  1636. .ath-dialog-text {
  1637. font-size: 0.875rem;
  1638. line-height: 1.6;
  1639. }
  1640. ​
  1641. .ath-context-menu {
  1642. position: fixed;
  1643. z-index: 2000;
  1644. min-width: 220px;
  1645. width: max-content;
  1646. }
  1647. ​
  1648. .ath-context-menu .orb-dropdown-item {
  1649. font-size: 0.8125rem;
  1650. padding: 7px 10px;
  1651. }
  1652. ​
  1653. .ath-error-list {
  1654. list-style: none;
  1655. display: flex;
  1656. flex-direction: column;
  1657. gap: 6px;
  1658. }
  1659. ​
  1660. .ath-error-list li {
  1661. padding: 8px 10px;
  1662. border-radius: var(--orb-radius-sm);
  1663. background: var(--orb-danger-dim);
  1664. color: var(--orb-danger);
  1665. font-size: 0.78125rem;
  1666. word-break: break-word;
  1667. }
  1668. ​
  1669. .ath-keys-table {
  1670. width: 100%;
  1671. font-size: 0.8125rem;
  1672. }
  1673. ​
  1674. .ath-keys-table td {
  1675. padding: 7px 10px;
  1676. vertical-align: middle;
  1677. }
  1678. ​
  1679. .ath-keys-table td:first-child {
  1680. white-space: nowrap;
  1681. width: 1%;
  1682. }
  1683. ​
  1684. .ath-combo {
  1685. display: inline-flex;
  1686. gap: 3px;
  1687. }
  1688. ​
  1689. .ath-about {
  1690. text-align: center;
  1691. }
  1692. ​
  1693. .ath-about p {
  1694. margin-top: var(--orb-space-2);
  1695. font-size: 0.875rem;
  1696. }
  1697. ​
  1698. .ath-about-logo {
  1699. width: 72px;
  1700. height: 72px;
  1701. margin: 0 auto var(--orb-space-3);
  1702. display: block;
  1703. object-fit: contain;
  1704. }
  1705. ​
  1706. .ath-lang-menu {
  1707. min-width: 250px;
  1708. }
  1709. ​
  1710. .ath-lang-menu .ath-accent-label {
  1711. padding: 6px 10px 0;
  1712. margin-bottom: 6px;
  1713. }
  1714. ​
  1715. .ath-lang-menu .orb-dropdown-item {
  1716. font-size: 0.8125rem;
  1717. padding: 7px 10px;
  1718. }
  1719. ​
  1720. .ath-lang-item.is-current {
  1721. color: var(--orb-primary-text);
  1722. font-weight: 600;
  1723. }
  1724. ​
  1725. .ath-lang-item.is-current svg {
  1726. color: var(--orb-primary-text);
  1727. }
  1728. ​
  1729. .ath-lang-code {
  1730. margin-left: auto;
  1731. font-size: 0.6875rem;
  1732. color: var(--orb-text-subtle);
  1733. text-transform: uppercase;
  1734. letter-spacing: 0.04em;
  1735. }
  1736. ​
  1737. .ath-shell {
  1738. transition: opacity 140ms var(--orb-ease);
  1739. }
  1740. ​
  1741. body:not(.is-ready) .ath-shell {
  1742. opacity: 0;
  1743. }
  1744. ​
  1745. body:not(.is-ready) * {
  1746. transition: none !important;
  1747. animation: none !important;
  1748. }
  1749. ​
  1750. .ath-drop-hint {
  1751. position: fixed;
  1752. inset: 12px;
  1753. z-index: 3000;
  1754. display: flex;
  1755. align-items: center;
  1756. justify-content: center;
  1757. gap: var(--orb-space-3);
  1758. border: 2px dashed var(--orb-primary);
  1759. border-radius: var(--orb-radius-xl);
  1760. background: color-mix(in srgb, var(--orb-bg) 82%, transparent);
  1761. backdrop-filter: blur(4px);
  1762. -webkit-backdrop-filter: blur(4px);
  1763. color: var(--orb-primary-text);
  1764. font-size: 1rem;
  1765. font-weight: 600;
  1766. opacity: 0;
  1767. pointer-events: none;
  1768. transition: opacity var(--orb-dur) var(--orb-ease);
  1769. }
  1770. ​
  1771. .ath-drop-hint.is-visible {
  1772. opacity: 1;
  1773. }
  1774. ​
  1775. .ath-drop-hint .ath-icon {
  1776. width: 24px;
  1777. height: 24px;
  1778. }
  1779. ​
  1780. @media (max-width: 960px) {
  1781. .ath-preview {
  1782. position: absolute;
  1783. top: 0;
  1784. right: 0;
  1785. bottom: 0;
  1786. z-index: 20;
  1787. width: min(100%, 520px);
  1788. border-left: 1px solid var(--orb-border);
  1789. box-shadow: var(--orb-shadow-lg);
  1790. }
  1791. ​
  1792. [data-split="preview"] {
  1793. display: none;
  1794. }
  1795. }
  1796. ​
  1797. @media (max-width: 720px) {
  1798. .ath-sidebar {
  1799. position: absolute;
  1800. top: 0;
  1801. left: 0;
  1802. bottom: 0;
  1803. z-index: 21;
  1804. width: min(85%, 300px);
  1805. border-right: 1px solid var(--orb-border);
  1806. box-shadow: var(--orb-shadow-lg);
  1807. }
  1808. ​
  1809. [data-split="sidebar"] {
  1810. display: none;
  1811. }
  1812. ​
  1813. .ath-brand-name {
  1814. display: none;
  1815. }
  1816. ​
  1817. .ath-topbar {
  1818. gap: var(--orb-space-2);
  1819. }
  1820. ​
  1821. .ath-shortcuts {
  1822. grid-template-columns: 1fr;
  1823. }
  1824. ​
  1825. #st-indent,
  1826. .ath-status-brand {
  1827. display: none;
  1828. }
  1829. }
  1830. ​
  1831. .ath-settings {
  1832. display: flex;
  1833. flex-direction: column;
  1834. gap: var(--orb-space-6);
  1835. }
  1836. ​
  1837. .ath-set-section h3 {
  1838. font-size: 0.6875rem;
  1839. font-weight: 700;
  1840. text-transform: uppercase;
  1841. letter-spacing: 0.06em;
  1842. color: var(--orb-text-subtle);
  1843. margin-bottom: var(--orb-space-2);
  1844. }
  1845. ​
  1846. .ath-set-row {
  1847. display: grid;
  1848. grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  1849. align-items: center;
  1850. gap: var(--orb-space-4);
  1851. padding: 10px 0;
  1852. border-bottom: 1px solid var(--orb-border);
  1853. }
  1854. ​
  1855. .ath-set-row:last-child {
  1856. border-bottom: none;
  1857. }
  1858. ​
  1859. .ath-set-label {
  1860. display: flex;
  1861. flex-direction: column;
  1862. gap: 2px;
  1863. font-size: 0.875rem;
  1864. min-width: 0;
  1865. }
  1866. ​
  1867. .ath-set-label small {
  1868. font-size: 0.75rem;
  1869. color: var(--orb-text-subtle);
  1870. line-height: 1.45;
  1871. }
  1872. ​
  1873. .ath-set-control {
  1874. display: flex;
  1875. justify-content: flex-end;
  1876. min-width: 0;
  1877. }
  1878. ​
  1879. .ath-set-control .orb-select {
  1880. min-height: 36px;
  1881. padding-top: 6px;
  1882. padding-bottom: 6px;
  1883. }
  1884. ​
  1885. .ath-set-accents {
  1886. grid-template-columns: repeat(8, 22px);
  1887. gap: 8px;
  1888. }
  1889. ​
  1890. .ath-set-accents .orb-color-dot {
  1891. width: 22px;
  1892. height: 22px;
  1893. }
  1894. ​
  1895. .ath-range {
  1896. display: flex;
  1897. align-items: center;
  1898. gap: var(--orb-space-3);
  1899. width: 100%;
  1900. }
  1901. ​
  1902. .ath-range-value {
  1903. min-width: 48px;
  1904. text-align: right;
  1905. font-size: 0.8125rem;
  1906. color: var(--orb-text-muted);
  1907. font-variant-numeric: tabular-nums;
  1908. }
  1909. ​
  1910. .ath-set-hint {
  1911. font-size: 0.8125rem;
  1912. color: var(--orb-text-muted);
  1913. line-height: 1.5;
  1914. margin-bottom: var(--orb-space-3);
  1915. }
  1916. ​
  1917. .ath-set-hint code {
  1918. font-family: var(--orb-font-mono);
  1919. font-size: 0.75rem;
  1920. }
  1921. ​
  1922. .ath-font-list {
  1923. display: flex;
  1924. flex-direction: column;
  1925. gap: 6px;
  1926. margin-bottom: var(--orb-space-3);
  1927. }
  1928. ​
  1929. .ath-font-item {
  1930. display: flex;
  1931. align-items: center;
  1932. justify-content: space-between;
  1933. gap: var(--orb-space-3);
  1934. padding: 6px 6px 6px 12px;
  1935. border: 1px solid var(--orb-border);
  1936. border-radius: var(--orb-radius-sm);
  1937. font-size: 0.9375rem;
  1938. }
  1939. ​
  1940. .ath-set-empty {
  1941. font-size: 0.8125rem;
  1942. color: var(--orb-text-subtle);
  1943. }
  1944. ​
  1945. @media (max-width: 560px) {
  1946. .ath-set-row {
  1947. grid-template-columns: 1fr;
  1948. gap: var(--orb-space-2);
  1949. }
  1950. ​
  1951. .ath-set-control {
  1952. justify-content: flex-start;
  1953. }
  1954. }
  1955. ​
  1956. .ath-palette-overlay {
  1957. position: fixed;
  1958. inset: 0;
  1959. z-index: 1500;
  1960. display: flex;
  1961. justify-content: center;
  1962. align-items: flex-start;
  1963. padding-top: 72px;
  1964. background: rgba(0, 0, 0, 0.18);
  1965. }
  1966. ​
  1967. .ath-palette {
  1968. width: min(640px, calc(100vw - 32px));
  1969. max-height: min(480px, 70vh);
  1970. display: flex;
  1971. flex-direction: column;
  1972. overflow: hidden;
  1973. background: var(--orb-surface);
  1974. border: 1px solid var(--orb-border-strong);
  1975. border-radius: var(--orb-radius-md);
  1976. box-shadow: var(--orb-shadow-lg);
  1977. animation: orb-pop var(--orb-dur) var(--orb-ease-out);
  1978. }
  1979. ​
  1980. .ath-palette-input {
  1981. width: 100%;
  1982. border: 0;
  1983. border-bottom: 1px solid var(--orb-border);
  1984. padding: 14px 16px;
  1985. background: transparent;
  1986. color: var(--orb-text);
  1987. font-size: 0.9375rem;
  1988. outline: none;
  1989. }
  1990. ​
  1991. .ath-palette[data-mode="cmd"] .ath-palette-input,
  1992. .ath-palette[data-mode="line"] .ath-palette-input {
  1993. font-family: var(--orb-font-mono);
  1994. }
  1995. ​
  1996. .ath-palette-list {
  1997. overflow-y: auto;
  1998. padding: 6px;
  1999. }
  2000. ​
  2001. .ath-palette-item {
  2002. display: flex;
  2003. align-items: center;
  2004. gap: 10px;
  2005. min-height: 34px;
  2006. padding: 6px 10px;
  2007. border-radius: var(--orb-radius-sm);
  2008. font-size: 0.8125rem;
  2009. cursor: pointer;
  2010. }
  2011. ​
  2012. .ath-palette-item.is-active {
  2013. background: var(--orb-primary-dim-strong);
  2014. }
  2015. ​
  2016. .ath-palette-item.is-disabled {
  2017. color: var(--orb-text-subtle);
  2018. cursor: default;
  2019. }
  2020. ​
  2021. .ath-palette-item .ath-icon {
  2022. color: var(--orb-text-muted);
  2023. }
  2024. ​
  2025. .ath-palette-noicon {
  2026. width: 20px;
  2027. flex-shrink: 0;
  2028. }
  2029. ​
  2030. .ath-palette-label {
  2031. white-space: nowrap;
  2032. overflow: hidden;
  2033. text-overflow: ellipsis;
  2034. }
  2035. ​
  2036. .ath-palette-label mark {
  2037. background: none;
  2038. color: var(--orb-primary-text);
  2039. font-weight: 700;
  2040. }
  2041. ​
  2042. .ath-palette-detail {
  2043. margin-left: auto;
  2044. padding-left: 12px;
  2045. color: var(--orb-text-subtle);
  2046. font-size: 0.75rem;
  2047. white-space: nowrap;
  2048. overflow: hidden;
  2049. text-overflow: ellipsis;
  2050. max-width: 55%;
  2051. font-family: var(--orb-font-mono);
  2052. }
  2053. ​
  2054. .ath-status-problems {
  2055. display: inline-flex;
  2056. align-items: center;
  2057. gap: 10px;
  2058. height: 100%;
  2059. border: 0;
  2060. background: none;
  2061. color: inherit;
  2062. font: inherit;
  2063. cursor: pointer;
  2064. }
  2065. ​
  2066. .ath-status-problems:hover {
  2067. color: var(--orb-text);
  2068. background: var(--orb-surface-hover);
  2069. }
  2070. ​
  2071. .ath-status-problems span {
  2072. display: inline-flex;
  2073. align-items: center;
  2074. gap: 3px;
  2075. }
  2076. ​
  2077. .ath-status-problems .ath-icon {
  2078. width: 12px;
  2079. height: 12px;
  2080. }
  2081. ​
  2082. .ath-status-problems.has-errors .ath-st-err {
  2083. color: var(--orb-danger);
  2084. font-weight: 700;
  2085. }
  2086. ​
  2087. body[data-view="welcome"] .ath-status-problems,
  2088. body[data-view="image"] .ath-status-problems {
  2089. display: none;
  2090. }
  2091. ​
  2092. .ath-snippet-preview {
  2093. margin: 0;
  2094. max-width: 460px;
  2095. max-height: 260px;
  2096. overflow: auto;
  2097. font-family: var(--ath-font-code);
  2098. font-size: 12px;
  2099. line-height: 1.5;
  2100. white-space: pre;
  2101. color: var(--orb-text-muted);
  2102. }
  2103. ​
  2104. .ath-pane-title[data-badge]::after {
  2105. content: attr(data-badge);
  2106. margin-left: 8px;
  2107. padding: 1px 6px;
  2108. border-radius: var(--orb-radius-xs);
  2109. background: var(--orb-primary-dim);
  2110. color: var(--orb-primary-text);
  2111. font-size: 0.625rem;
  2112. letter-spacing: 0.04em;
  2113. }
  2114. ​
  2115. .ath-preview-loading {
  2116. position: absolute;
  2117. inset: 0;
  2118. display: flex;
  2119. flex-direction: column;
  2120. align-items: center;
  2121. justify-content: center;
  2122. gap: var(--orb-space-3);
  2123. background: color-mix(in srgb, var(--orb-surface) 88%, transparent);
  2124. color: var(--orb-text-muted);
  2125. font-size: 0.8125rem;
  2126. z-index: 2;
  2127. }
  2128. ​
  2129. .ath-spinner {
  2130. width: 26px;
  2131. height: 26px;
  2132. border-radius: 50%;
  2133. border: 3px solid var(--orb-primary-dim-strong);
  2134. border-top-color: var(--orb-primary);
  2135. animation: orb-spin 0.8s linear infinite;
  2136. }
  2137. ​
  2138. .ath-search {
  2139. flex: 0 0 auto;
  2140. display: flex;
  2141. flex-direction: column;
  2142. position: relative;
  2143. min-height: 0;
  2144. overflow: hidden;
  2145. height: 35px;
  2146. border-top: 1px solid var(--orb-border);
  2147. background: var(--orb-bg);
  2148. transition: height var(--orb-dur-slow) var(--orb-ease-out);
  2149. }
  2150. ​
  2151. .ath-search.is-open {
  2152. height: var(--ath-search-h, 320px);
  2153. max-height: 80%;
  2154. }
  2155. ​
  2156. body.ath-resizing .ath-search {
  2157. transition: none;
  2158. }
  2159. ​
  2160. .ath-search-grip {
  2161. display: none;
  2162. position: absolute;
  2163. left: 0;
  2164. right: 0;
  2165. top: -3px;
  2166. height: 6px;
  2167. cursor: row-resize;
  2168. z-index: 2;
  2169. }
  2170. ​
  2171. .ath-search.is-open .ath-search-grip {
  2172. display: block;
  2173. }
  2174. ​
  2175. .ath-search-head {
  2176. display: flex;
  2177. align-items: center;
  2178. gap: var(--orb-space-2);
  2179. height: 34px;
  2180. flex-shrink: 0;
  2181. padding: 0 6px;
  2182. }
  2183. ​
  2184. .ath-search-toggle {
  2185. display: flex;
  2186. align-items: center;
  2187. gap: 6px;
  2188. flex: 1;
  2189. min-width: 0;
  2190. height: 100%;
  2191. padding: 0 8px;
  2192. border: none;
  2193. background: transparent;
  2194. color: inherit;
  2195. text-align: left;
  2196. cursor: pointer;
  2197. }
  2198. ​
  2199. .ath-search-chev {
  2200. display: grid;
  2201. place-items: center;
  2202. color: var(--orb-text-muted);
  2203. transition: transform var(--orb-dur-fast) var(--orb-ease);
  2204. }
  2205. ​
  2206. .ath-search-chev .ath-icon,
  2207. .ath-sr-chev .ath-icon {
  2208. width: 13px;
  2209. height: 13px;
  2210. }
  2211. ​
  2212. .ath-search.is-open .ath-search-chev {
  2213. transform: rotate(90deg);
  2214. }
  2215. ​
  2216. .ath-search-count,
  2217. .ath-sr-num {
  2218. margin-left: auto;
  2219. flex-shrink: 0;
  2220. min-width: 18px;
  2221. padding: 0 6px;
  2222. border-radius: 999px;
  2223. background: var(--orb-primary-dim);
  2224. color: var(--orb-primary-text);
  2225. font-size: 0.6875rem;
  2226. font-weight: 600;
  2227. line-height: 18px;
  2228. text-align: center;
  2229. }
  2230. ​
  2231. .ath-search-count:empty {
  2232. display: none;
  2233. }
  2234. ​
  2235. .ath-search-body {
  2236. display: flex;
  2237. flex-direction: column;
  2238. flex: 1;
  2239. min-height: 0;
  2240. opacity: 0;
  2241. visibility: hidden;
  2242. transform: translateY(-4px);
  2243. transition: opacity var(--orb-dur) var(--orb-ease), transform var(--orb-dur) var(--orb-ease-out), visibility 0s linear var(--orb-dur);
  2244. }
  2245. ​
  2246. .ath-search.is-open .ath-search-body {
  2247. opacity: 1;
  2248. visibility: visible;
  2249. transform: none;
  2250. transition: opacity var(--orb-dur-slow) var(--orb-ease) 60ms, transform var(--orb-dur-slow) var(--orb-ease-out) 60ms, visibility 0s;
  2251. }
  2252. ​
  2253. .ath-search-form {
  2254. display: flex;
  2255. flex-direction: column;
  2256. gap: 6px;
  2257. flex-shrink: 0;
  2258. padding: 2px 10px 8px;
  2259. }
  2260. ​
  2261. .ath-search-row {
  2262. display: flex;
  2263. align-items: center;
  2264. gap: 4px;
  2265. }
  2266. ​
  2267. .ath-search-input {
  2268. flex: 1;
  2269. min-width: 0;
  2270. height: 28px;
  2271. padding: 0 8px;
  2272. font-size: 0.8125rem;
  2273. }
  2274. ​
  2275. .ath-search-multiline {
  2276. height: auto;
  2277. min-height: 28px;
  2278. max-height: 88px;
  2279. padding: 5px 8px;
  2280. line-height: 1.35;
  2281. resize: none;
  2282. overflow-y: auto;
  2283. white-space: pre-wrap;
  2284. }
  2285. ​
  2286. #search-query,
  2287. #search-replace {
  2288. align-self: flex-start;
  2289. }
  2290. ​
  2291. .ath-search-opt {
  2292. flex-shrink: 0;
  2293. width: 26px;
  2294. height: 26px;
  2295. border: 1px solid transparent;
  2296. border-radius: var(--orb-radius-xs);
  2297. background: transparent;
  2298. color: var(--orb-text-muted);
  2299. font: 600 0.6875rem var(--ath-font-code);
  2300. cursor: pointer;
  2301. }
  2302. ​
  2303. .ath-search-opt:hover {
  2304. background: var(--orb-surface-hover);
  2305. color: var(--orb-text);
  2306. }
  2307. ​
  2308. .ath-search-opt[aria-pressed="true"],
  2309. #search-replace-toggle[aria-pressed="true"] {
  2310. background: var(--orb-primary-dim-strong);
  2311. color: var(--orb-primary-text);
  2312. border-color: var(--orb-primary-border);
  2313. }
  2314. ​
  2315. .ath-search-status {
  2316. display: flex;
  2317. align-items: center;
  2318. gap: 8px;
  2319. flex-shrink: 0;
  2320. min-height: 22px;
  2321. padding: 0 12px 4px;
  2322. font-size: 0.75rem;
  2323. color: var(--orb-text-muted);
  2324. }
  2325. ​
  2326. .ath-search-stop {
  2327. margin-left: auto;
  2328. border: none;
  2329. background: transparent;
  2330. color: var(--orb-primary-text);
  2331. font-size: 0.75rem;
  2332. cursor: pointer;
  2333. }
  2334. ​
  2335. .ath-search-results {
  2336. flex: 1;
  2337. min-height: 0;
  2338. overflow: auto;
  2339. overflow-anchor: none;
  2340. padding-bottom: 12px;
  2341. font-size: 0.8125rem;
  2342. }
  2343. ​
  2344. .ath-cm-search-panel {
  2345. display: flex;
  2346. flex-direction: column;
  2347. gap: 6px;
  2348. padding: 8px 10px;
  2349. font-family: var(--orb-font-sans);
  2350. font-size: 0.8125rem;
  2351. }
  2352. ​
  2353. .ath-cm-search-row,
  2354. .ath-cm-search-replace {
  2355. display: flex;
  2356. align-items: flex-start;
  2357. gap: 6px;
  2358. }
  2359. ​
  2360. .ath-cm-search-replace[hidden] {
  2361. display: none;
  2362. }
  2363. ​
  2364. .ath-cm-search-field {
  2365. flex: 1;
  2366. min-width: 100px;
  2367. min-height: 30px;
  2368. max-height: 84px;
  2369. padding: 5px 8px;
  2370. resize: none;
  2371. overflow-y: auto;
  2372. white-space: pre-wrap;
  2373. line-height: 1.35;
  2374. font-size: 0.8125rem;
  2375. }
  2376. ​
  2377. .ath-cm-search-controls {
  2378. display: flex;
  2379. flex-wrap: wrap;
  2380. gap: 3px;
  2381. }
  2382. ​
  2383. .ath-cm-search-button {
  2384. min-width: 28px;
  2385. min-height: 28px;
  2386. padding: 2px 7px;
  2387. border: 1px solid var(--orb-border);
  2388. border-radius: var(--orb-radius-xs);
  2389. background: var(--orb-surface);
  2390. color: var(--orb-text);
  2391. font: inherit;
  2392. cursor: pointer;
  2393. }
  2394. ​
  2395. .ath-cm-search-button:hover {
  2396. background: var(--orb-surface-hover);
  2397. }
  2398. ​
  2399. .ath-cm-search-option {
  2400. font-family: var(--ath-font-code);
  2401. }
  2402. ​
  2403. .ath-cm-search-option[aria-pressed="true"] {
  2404. border-color: var(--orb-primary-border);
  2405. background: var(--orb-primary-dim-strong);
  2406. color: var(--orb-primary-text);
  2407. }
  2408. ​
  2409. .ath-sr-file {
  2410. display: flex;
  2411. align-items: center;
  2412. gap: 5px;
  2413. height: 26px;
  2414. padding: 0 8px;
  2415. cursor: pointer;
  2416. user-select: none;
  2417. outline: none;
  2418. }
  2419. ​
  2420. .ath-sr-file:hover,
  2421. .ath-sr-match:hover {
  2422. background: var(--orb-surface-hover);
  2423. }
  2424. ​
  2425. .ath-sr-file:focus-visible,
  2426. .ath-sr-match:focus-visible {
  2427. box-shadow: inset 0 0 0 1px var(--orb-primary);
  2428. }
  2429. ​
  2430. .ath-sr-chev {
  2431. display: grid;
  2432. place-items: center;
  2433. color: var(--orb-text-muted);
  2434. transition: transform var(--orb-dur-fast) var(--orb-ease);
  2435. }
  2436. ​
  2437. .ath-sr-group:not(.is-collapsed) .ath-sr-chev {
  2438. transform: rotate(90deg);
  2439. }
  2440. ​
  2441. .ath-sr-name {
  2442. font-weight: 600;
  2443. white-space: nowrap;
  2444. }
  2445. ​
  2446. .ath-sr-dir {
  2447. flex: 1;
  2448. min-width: 0;
  2449. overflow: hidden;
  2450. text-overflow: ellipsis;
  2451. white-space: nowrap;
  2452. color: var(--orb-text-subtle);
  2453. font-size: 0.75rem;
  2454. }
  2455. ​
  2456. .ath-sr-group {
  2457. display: grid;
  2458. grid-template-rows: auto 1fr;
  2459. transition: grid-template-rows var(--orb-dur) var(--orb-ease-out);
  2460. }
  2461. ​
  2462. .ath-sr-list {
  2463. min-height: 0;
  2464. overflow: hidden;
  2465. transition: opacity var(--orb-dur) var(--orb-ease), visibility 0s;
  2466. }
  2467. ​
  2468. .ath-sr-group.is-collapsed {
  2469. grid-template-rows: auto 0fr;
  2470. }
  2471. ​
  2472. .ath-sr-group.is-collapsed .ath-sr-list {
  2473. opacity: 0;
  2474. visibility: hidden;
  2475. transition: opacity var(--orb-dur-fast) var(--orb-ease), visibility 0s linear var(--orb-dur);
  2476. }
  2477. ​
  2478. .ath-sr-match {
  2479. display: flex;
  2480. align-items: center;
  2481. gap: 8px;
  2482. min-height: 22px;
  2483. padding: 1px 8px 1px 26px;
  2484. font-family: var(--ath-font-code);
  2485. font-size: 0.75rem;
  2486. cursor: pointer;
  2487. outline: none;
  2488. }
  2489. ​
  2490. .ath-sr-line {
  2491. flex: 0 0 auto;
  2492. min-width: 2.2em;
  2493. text-align: right;
  2494. color: var(--orb-text-subtle);
  2495. }
  2496. ​
  2497. .ath-sr-text {
  2498. flex: 1;
  2499. min-width: 0;
  2500. overflow: hidden;
  2501. text-overflow: ellipsis;
  2502. white-space: pre;
  2503. }
  2504. ​
  2505. .ath-sr-hit {
  2506. border-radius: 2px;
  2507. background: var(--orb-primary-dim-strong);
  2508. color: inherit;
  2509. }
  2510. ​
  2511. .ath-sr-ins {
  2512. display: none;
  2513. border-radius: 2px;
  2514. background: color-mix(in srgb, var(--orb-success) 22%, transparent);
  2515. text-decoration: none;
  2516. }
  2517. ​
  2518. .ath-search-results.is-replace .ath-sr-ins {
  2519. display: inline;
  2520. }
  2521. ​
  2522. .ath-search-results.is-replace .ath-sr-hit {
  2523. background: color-mix(in srgb, var(--orb-danger) 18%, transparent);
  2524. text-decoration: line-through;
  2525. }
  2526. ​
  2527. .ath-sr-replace {
  2528. display: none;
  2529. flex-shrink: 0;
  2530. width: 22px;
  2531. height: 22px;
  2532. }
  2533. ​
  2534. .ath-search-results.is-replace .ath-sr-file:hover .ath-sr-replace,
  2535. .ath-search-results.is-replace .ath-sr-file:focus-within .ath-sr-replace,
  2536. .ath-search-results.is-replace .ath-sr-match:hover .ath-sr-replace,
  2537. .ath-search-results.is-replace .ath-sr-match:focus-within .ath-sr-replace {
  2538. display: grid;
  2539. }
  2540. ​
  2541. .ath-search-more {
  2542. padding: 8px 10px;
  2543. }
  2544. ​
  2545. @media (prefers-reduced-motion: reduce) {
  2546. ​
  2547. .ath-tab,
  2548. .ath-tab::before,
  2549. .ath-tab-marker {
  2550. transition: none !important;
  2551. }
  2552. ​
  2553. .ath-tab.is-entering,
  2554. .ath-tab.is-leaving {
  2555. animation: none !important;
  2556. }
  2557. ​
  2558. .ath-tab.is-leaving {
  2559. display: none;
  2560. }
  2561. ​
  2562. .ath-tree-row,
  2563. .ath-tree-row::before,
  2564. .ath-tree-chevron,
  2565. .ath-tree-chevron .ath-icon,
  2566. .ath-ficon {
  2567. transition: none !important;
  2568. }
  2569. ​
  2570. .ath-tree-row.is-entering,
  2571. .ath-ficon.is-toggled {
  2572. animation: none !important;
  2573. }
  2574. ​
  2575. .ath-search,
  2576. .ath-search-body,
  2577. .ath-search-chev,
  2578. .ath-sr-group,
  2579. .ath-sr-list,
  2580. .ath-sr-chev {
  2581. transition: none !important;
  2582. }
  2583. }
  2584. ​
  2585. .ath-swatch {
  2586. display: inline-block;
  2587. width: 0.95em;
  2588. height: 0.95em;
  2589. margin: 0 0.4em 0 0.1em;
  2590. vertical-align: -0.12em;
  2591. border-radius: 3px;
  2592. box-shadow: 0 0 0 1px var(--orb-border-strong);
  2593. background-color: var(--orb-bg);
  2594. background-image:
  2595. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2596. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%);
  2597. background-size: 8px 8px;
  2598. background-position: 0 0, 4px 4px;
  2599. cursor: pointer;
  2600. user-select: none;
  2601. overflow: hidden;
  2602. transition: transform var(--orb-dur) var(--orb-ease), box-shadow var(--orb-dur) var(--orb-ease);
  2603. }
  2604. ​
  2605. .ath-swatch:hover {
  2606. transform: scale(1.18);
  2607. box-shadow: 0 0 0 1px var(--orb-primary);
  2608. }
  2609. ​
  2610. .ath-swatch-fill {
  2611. display: block;
  2612. width: 100%;
  2613. height: 100%;
  2614. border-radius: inherit;
  2615. }
  2616. ​
  2617. .ath-cp-overlay {
  2618. z-index: 1200;
  2619. }
  2620. ​
  2621. .ath-cp-modal {
  2622. max-width: 460px;
  2623. }
  2624. ​
  2625. .ath-cp-body {
  2626. display: flex;
  2627. flex-direction: column;
  2628. gap: var(--orb-space-4);
  2629. }
  2630. ​
  2631. .ath-cp-preview {
  2632. display: flex;
  2633. flex-direction: column;
  2634. gap: var(--orb-space-3);
  2635. padding: var(--orb-space-4);
  2636. border-radius: var(--orb-radius-md);
  2637. border: 1px solid var(--orb-border);
  2638. background:
  2639. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2640. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2641. var(--orb-surface);
  2642. background-size: 12px 12px;
  2643. background-position: 0 0, 6px 6px;
  2644. }
  2645. ​
  2646. .ath-cp-preview::before {
  2647. content: "";
  2648. display: block;
  2649. height: 44px;
  2650. border-radius: var(--orb-radius-sm);
  2651. border: 1px solid var(--orb-border-strong);
  2652. background: var(--ath-cp-color, transparent);
  2653. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  2654. order: -1;
  2655. }
  2656. ​
  2657. .ath-cp-picker-row {
  2658. display: flex;
  2659. gap: var(--orb-space-3);
  2660. align-items: stretch;
  2661. }
  2662. ​
  2663. .ath-cp-sv {
  2664. position: relative;
  2665. flex: 1;
  2666. min-width: 0;
  2667. height: 180px;
  2668. border-radius: var(--orb-radius-sm);
  2669. border: 1px solid var(--orb-border-strong);
  2670. cursor: crosshair;
  2671. overflow: hidden;
  2672. }
  2673. ​
  2674. .ath-cp-sv-cursor {
  2675. position: absolute;
  2676. width: 14px;
  2677. height: 14px;
  2678. border-radius: 50%;
  2679. border: 2px solid #fff;
  2680. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.4);
  2681. transform: translate(-50%, -50%);
  2682. pointer-events: none;
  2683. }
  2684. ​
  2685. .ath-cp-side {
  2686. display: flex;
  2687. flex-direction: row;
  2688. gap: var(--orb-space-2);
  2689. width: 28px;
  2690. flex-shrink: 0;
  2691. }
  2692. ​
  2693. .ath-cp-hue,
  2694. .ath-cp-alpha {
  2695. position: relative;
  2696. flex: 1;
  2697. min-width: 0;
  2698. border-radius: var(--orb-radius-full);
  2699. border: 1px solid var(--orb-border-strong);
  2700. cursor: pointer;
  2701. }
  2702. ​
  2703. .ath-cp-hue {
  2704. background: linear-gradient(to bottom,
  2705. #f00 0%, #ff0 17%, #0f0 33%,
  2706. #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  2707. }
  2708. ​
  2709. .ath-cp-alpha {
  2710. background:
  2711. linear-gradient(to bottom, transparent 0%, var(--ath-cp-color, #000) 100%),
  2712. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2713. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2714. var(--orb-surface);
  2715. background-size: 100% 100%, 8px 8px, 8px 8px, 100% 100%;
  2716. background-position: 0 0, 0 0, 4px 4px, 0 0;
  2717. }
  2718. ​
  2719. .ath-cp-hue-cursor,
  2720. .ath-cp-alpha-cursor {
  2721. position: absolute;
  2722. left: 50%;
  2723. width: 20px;
  2724. height: 12px;
  2725. border-radius: var(--orb-radius-full);
  2726. border: 2px solid #fff;
  2727. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  2728. transform: translate(-50%, -50%);
  2729. pointer-events: none;
  2730. }
  2731. ​
  2732. .ath-cp-tabs {
  2733. align-self: flex-start;
  2734. }
  2735. ​
  2736. .ath-cp-fields {
  2737. display: grid;
  2738. grid-template-columns: repeat(4, 1fr);
  2739. gap: var(--orb-space-3);
  2740. }
  2741. ​
  2742. .ath-cp-field .orb-label {
  2743. margin-bottom: var(--orb-space-1);
  2744. text-transform: uppercase;
  2745. font-size: 0.6875rem;
  2746. letter-spacing: 0.05em;
  2747. }
  2748. ​
  2749. .ath-cp-field .orb-input {
  2750. min-height: 36px;
  2751. padding: 6px 10px;
  2752. font-size: 0.8125rem;
  2753. }
  2754. ​
  2755. .ath-cp-hexwrap .orb-label {
  2756. margin-bottom: var(--orb-space-1);
  2757. text-transform: uppercase;
  2758. font-size: 0.6875rem;
  2759. letter-spacing: 0.05em;
  2760. }
  2761. ​
  2762. .ath-cp-hexwrap .orb-input {
  2763. min-height: 36px;
  2764. font-size: 0.8125rem;
  2765. }
  2766. ​
  2767. .ath-cp-actions {
  2768. justify-content: space-between;
  2769. }
  2770. ​
  2771. .ath-cp-actions-right {
  2772. display: flex;
  2773. gap: var(--orb-space-2);
  2774. }
  2775. ​
  2776. @media (max-width: 560px) {
  2777. .ath-cp-fields {
  2778. grid-template-columns: repeat(2, 1fr);
  2779. }
  2780. ​
  2781. .ath-cp-picker-row {
  2782. flex-direction: column;
  2783. }
  2784. ​
  2785. .ath-cp-side {
  2786. width: 100%;
  2787. height: 24px;
  2788. }
  2789. ​
  2790. .ath-cp-hue,
  2791. .ath-cp-alpha {
  2792. height: 24px;
  2793. }
  2794. ​
  2795. .ath-cp-hue {
  2796. background: linear-gradient(to right,
  2797. #f00 0%, #ff0 17%, #0f0 33%,
  2798. #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  2799. }
  2800. ​
  2801. .ath-cp-alpha {
  2802. background:
  2803. linear-gradient(to right, transparent 0%, var(--ath-cp-color, #000) 100%),
  2804. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2805. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2806. var(--orb-surface);
  2807. background-size: 100% 100%, 8px 8px, 8px 8px, 100% 100%;
  2808. background-position: 0 0, 0 0, 4px 4px, 0 0;
  2809. }
  2810. ​
  2811. .ath-cp-hue-cursor,
  2812. .ath-cp-alpha-cursor {
  2813. top: 50% !important;
  2814. left: auto;
  2815. width: 12px;
  2816. height: 20px;
  2817. }
  2818. }
  2819. .ath-ai-window {
  2820. position: fixed;
  2821. z-index: 900;
  2822. display: flex;
  2823. flex-direction: column;
  2824. min-width: 0;
  2825. background: var(--orb-surface);
  2826. color: var(--orb-text);
  2827. border: 1px solid var(--orb-border-strong);
  2828. border-radius: var(--orb-radius-md);
  2829. box-shadow: var(--orb-shadow-lg);
  2830. outline: none;
  2831. }
  2832. ​
  2833. .ath-ai-window[hidden] {
  2834. display: none;
  2835. }
  2836. ​
  2837. .ath-ai-head {
  2838. display: flex;
  2839. align-items: center;
  2840. gap: var(--orb-space-2);
  2841. padding: 8px 8px 8px 12px;
  2842. border-bottom: 1px solid var(--orb-border);
  2843. border-radius: var(--orb-radius-md) var(--orb-radius-md) 0 0;
  2844. background: var(--orb-surface-alt);
  2845. cursor: move;
  2846. user-select: none;
  2847. touch-action: none;
  2848. }
  2849. ​
  2850. .ath-ai-logo {
  2851. display: grid;
  2852. place-items: center;
  2853. color: var(--orb-primary);
  2854. }
  2855. ​
  2856. .ath-ai-title {
  2857. font-weight: 700;
  2858. font-size: 0.875rem;
  2859. white-space: nowrap;
  2860. overflow: hidden;
  2861. text-overflow: ellipsis;
  2862. min-width: 0;
  2863. }
  2864. ​
  2865. .ath-ai-chip {
  2866. flex-shrink: 0;
  2867. border: 1px solid var(--orb-border);
  2868. border-radius: var(--orb-radius-full);
  2869. background: var(--orb-surface);
  2870. color: var(--orb-text-muted);
  2871. font: inherit;
  2872. font-size: 0.75rem;
  2873. font-variant-numeric: tabular-nums;
  2874. padding: 2px 10px;
  2875. cursor: pointer;
  2876. transition: border-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
  2877. }
  2878. ​
  2879. .ath-ai-chip:hover {
  2880. border-color: var(--orb-primary-border);
  2881. color: var(--orb-text);
  2882. }
  2883. ​
  2884. .ath-ai-chip.is-over {
  2885. border-color: var(--orb-warning);
  2886. color: var(--orb-warning);
  2887. }
  2888. ​
  2889. .ath-ai-spacer {
  2890. flex: 1;
  2891. }
  2892. ​
  2893. .ath-ai-master {
  2894. display: flex;
  2895. align-items: center;
  2896. cursor: default;
  2897. }
  2898. ​
  2899. .ath-ai-body {
  2900. flex: 1;
  2901. display: flex;
  2902. min-height: 0;
  2903. overflow: hidden;
  2904. border-radius: 0 0 var(--orb-radius-md) var(--orb-radius-md);
  2905. }
  2906. ​
  2907. .ath-ai-nav {
  2908. display: flex;
  2909. flex-direction: column;
  2910. gap: 2px;
  2911. width: 196px;
  2912. flex-shrink: 0;
  2913. padding: var(--orb-space-2);
  2914. border-right: 1px solid var(--orb-border);
  2915. overflow-y: auto;
  2916. }
  2917. ​
  2918. .ath-ai-nav-item {
  2919. display: flex;
  2920. align-items: center;
  2921. gap: 10px;
  2922. width: 100%;
  2923. padding: 7px 10px;
  2924. border: none;
  2925. border-radius: var(--orb-radius-sm);
  2926. background: transparent;
  2927. color: var(--orb-text-muted);
  2928. font: inherit;
  2929. font-size: 0.8125rem;
  2930. text-align: left;
  2931. cursor: pointer;
  2932. transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
  2933. }
  2934. ​
  2935. .ath-ai-nav-item span {
  2936. overflow: hidden;
  2937. text-overflow: ellipsis;
  2938. white-space: nowrap;
  2939. }
  2940. ​
  2941. .ath-ai-nav-item:hover {
  2942. background: var(--orb-surface-hover);
  2943. color: var(--orb-text);
  2944. }
  2945. ​
  2946. .ath-ai-nav-item.is-active {
  2947. background: var(--orb-primary-dim);
  2948. color: var(--orb-primary-text);
  2949. font-weight: 600;
  2950. }
  2951. ​
  2952. .ath-ai-window.is-compact .ath-ai-nav {
  2953. width: 48px;
  2954. padding: 6px;
  2955. }
  2956. ​
  2957. .ath-ai-window.is-compact .ath-ai-nav-item {
  2958. justify-content: center;
  2959. padding: 8px 0;
  2960. }
  2961. ​
  2962. .ath-ai-window.is-compact .ath-ai-nav-item span {
  2963. display: none;
  2964. }
  2965. ​
  2966. .ath-ai-content {
  2967. flex: 1;
  2968. min-width: 0;
  2969. overflow-y: auto;
  2970. padding: var(--orb-space-4) var(--orb-space-5) var(--orb-space-6);
  2971. }
  2972. ​
  2973. .ath-ai-section-title {
  2974. font-size: 1rem;
  2975. font-weight: 700;
  2976. margin-bottom: var(--orb-space-3);
  2977. }
  2978. ​
  2979. .ath-ai-section.ath-settings {
  2980. gap: var(--orb-space-3);
  2981. }
  2982. ​
  2983. .ath-ai-subhead {
  2984. font-size: 0.6875rem;
  2985. font-weight: 700;
  2986. text-transform: uppercase;
  2987. letter-spacing: 0.06em;
  2988. color: var(--orb-text-subtle);
  2989. margin-top: var(--orb-space-3);
  2990. }
  2991. ​
  2992. .ath-ai-row {
  2993. grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  2994. }
  2995. ​
  2996. .ath-ai-window.is-compact .ath-ai-row {
  2997. grid-template-columns: 1fr;
  2998. gap: var(--orb-space-2);
  2999. }
  3000. ​
  3001. .ath-ai-window.is-compact .ath-ai-row .ath-set-control {
  3002. justify-content: flex-start;
  3003. }
  3004. ​
  3005. .ath-ai-row .ath-set-control > .orb-input,
  3006. .ath-ai-row .ath-set-control > .orb-select {
  3007. width: 100%;
  3008. }
  3009. ​
  3010. .ath-ai-actions {
  3011. display: flex;
  3012. flex-wrap: wrap;
  3013. gap: var(--orb-space-2);
  3014. margin-top: var(--orb-space-2);
  3015. }
  3016. ​
  3017. .ath-ai-actions .orb-btn .ath-icon,
  3018. .ath-ai-row .orb-btn .ath-icon,
  3019. .ath-ai-pass .orb-btn .ath-icon {
  3020. width: 14px;
  3021. height: 14px;
  3022. }
  3023. ​
  3024. .ath-ai-unit {
  3025. display: flex;
  3026. align-items: center;
  3027. gap: var(--orb-space-2);
  3028. width: 100%;
  3029. }
  3030. ​
  3031. .ath-ai-unit span {
  3032. font-size: 0.75rem;
  3033. color: var(--orb-text-subtle);
  3034. }
  3035. ​
  3036. .ath-ai-number {
  3037. min-height: 36px;
  3038. padding-top: 6px;
  3039. padding-bottom: 6px;
  3040. font-variant-numeric: tabular-nums;
  3041. }
  3042. ​
  3043. .ath-ai-area-wrap {
  3044. display: flex;
  3045. flex-direction: column;
  3046. gap: 4px;
  3047. }
  3048. ​
  3049. .ath-ai-area {
  3050. width: 100%;
  3051. min-height: 90px;
  3052. font-size: 0.8125rem;
  3053. line-height: 1.55;
  3054. }
  3055. ​
  3056. .ath-ai-area.orb-mono {
  3057. font-family: var(--ath-font-code);
  3058. }
  3059. ​
  3060. .ath-ai-counter {
  3061. align-self: flex-end;
  3062. font-size: 0.75rem;
  3063. color: var(--orb-text-subtle);
  3064. font-variant-numeric: tabular-nums;
  3065. }
  3066. ​
  3067. .ath-ai-live {
  3068. display: flex;
  3069. flex-direction: column;
  3070. gap: var(--orb-space-2);
  3071. }
  3072. ​
  3073. .ath-ai-spend {
  3074. display: flex;
  3075. flex-direction: column;
  3076. gap: var(--orb-space-2);
  3077. padding: var(--orb-space-3);
  3078. border: 1px solid var(--orb-border);
  3079. border-radius: var(--orb-radius-sm);
  3080. background: var(--orb-surface-alt);
  3081. }
  3082. ​
  3083. .ath-ai-spend-main {
  3084. display: flex;
  3085. align-items: baseline;
  3086. gap: var(--orb-space-2);
  3087. flex-wrap: wrap;
  3088. }
  3089. ​
  3090. .ath-ai-spend-main strong {
  3091. font-size: 1.25rem;
  3092. font-variant-numeric: tabular-nums;
  3093. }
  3094. ​
  3095. .ath-ai-spend-main span {
  3096. font-size: 0.8125rem;
  3097. color: var(--orb-text-muted);
  3098. }
  3099. ​
  3100. .ath-ai-progress {
  3101. height: 8px;
  3102. }
  3103. ​
  3104. .ath-ai-progress.is-over {
  3105. --orb-tone: var(--orb-warning);
  3106. }
  3107. ​
  3108. .ath-ai-stats {
  3109. display: flex;
  3110. flex-wrap: wrap;
  3111. gap: 4px var(--orb-space-4);
  3112. font-size: 0.75rem;
  3113. color: var(--orb-text-muted);
  3114. font-variant-numeric: tabular-nums;
  3115. }
  3116. ​
  3117. .ath-ai-table-wrap {
  3118. overflow-x: auto;
  3119. border: 1px solid var(--orb-border);
  3120. border-radius: var(--orb-radius-sm);
  3121. }
  3122. ​
  3123. .ath-ai-models {
  3124. font-size: 0.75rem;
  3125. min-width: 880px;
  3126. }
  3127. ​
  3128. .ath-ai-models th,
  3129. .ath-ai-models td {
  3130. padding: 4px 6px;
  3131. vertical-align: middle;
  3132. }
  3133. ​
  3134. .ath-ai-models th {
  3135. font-size: 0.6875rem;
  3136. white-space: nowrap;
  3137. }
  3138. ​
  3139. .ath-ai-models .orb-input,
  3140. .ath-ai-models .orb-select {
  3141. min-height: 30px;
  3142. padding: 4px 8px;
  3143. font-size: 0.75rem;
  3144. }
  3145. ​
  3146. .ath-ai-cell-select {
  3147. min-width: 112px;
  3148. }
  3149. ​
  3150. .ath-ai-model-id {
  3151. min-width: 180px;
  3152. font-family: var(--ath-font-code);
  3153. }
  3154. ​
  3155. .ath-ai-price {
  3156. width: 76px;
  3157. font-variant-numeric: tabular-nums;
  3158. }
  3159. ​
  3160. .ath-ai-center {
  3161. text-align: center;
  3162. }
  3163. ​
  3164. .ath-ai-models tr.is-unpriced td:nth-child(5) .orb-input,
  3165. .ath-ai-models tr.is-unpriced td:nth-child(6) .orb-input {
  3166. border-color: var(--orb-warning);
  3167. }
  3168. ​
  3169. .ath-ai-key-control {
  3170. display: flex;
  3171. align-items: center;
  3172. gap: 6px;
  3173. width: 100%;
  3174. }
  3175. ​
  3176. .ath-ai-key-control .orb-input {
  3177. flex: 1;
  3178. min-width: 0;
  3179. min-height: 34px;
  3180. padding-top: 5px;
  3181. padding-bottom: 5px;
  3182. font-size: 0.8125rem;
  3183. }
  3184. ​
  3185. .ath-ai-pass {
  3186. display: flex;
  3187. flex-wrap: wrap;
  3188. align-items: center;
  3189. gap: var(--orb-space-2);
  3190. margin-top: var(--orb-space-2);
  3191. }
  3192. ​
  3193. .ath-ai-pass .orb-input {
  3194. flex: 1 1 160px;
  3195. min-width: 0;
  3196. min-height: 36px;
  3197. padding-top: 6px;
  3198. padding-bottom: 6px;
  3199. }
  3200. ​
  3201. .ath-ai-probe-box {
  3202. display: flex;
  3203. flex-direction: column;
  3204. gap: 4px;
  3205. width: 100%;
  3206. }
  3207. ​
  3208. .ath-ai-probe {
  3209. font-size: 0.75rem;
  3210. color: var(--orb-success);
  3211. min-height: 1em;
  3212. }
  3213. ​
  3214. .ath-ai-probe.is-excluded {
  3215. color: var(--orb-danger);
  3216. }
  3217. ​
  3218. .ath-ai-consent {
  3219. display: flex;
  3220. flex-direction: column;
  3221. gap: var(--orb-space-3);
  3222. }
  3223. ​
  3224. .ath-ai-consent-list {
  3225. display: flex;
  3226. flex-direction: column;
  3227. gap: 8px;
  3228. padding-left: 1.2em;
  3229. list-style: disc;
  3230. font-size: 0.8125rem;
  3231. line-height: 1.55;
  3232. color: var(--orb-text-muted);
  3233. }
  3234. ​
  3235. .ath-ai-consent-check {
  3236. align-items: flex-start;
  3237. font-size: 0.8125rem;
  3238. line-height: 1.45;
  3239. }
  3240. ​
  3241. .ath-ai-resize {
  3242. position: absolute;
  3243. z-index: 2;
  3244. touch-action: none;
  3245. }
  3246. ​
  3247. .ath-ai-resize-w,
  3248. .ath-ai-resize-e {
  3249. top: 12px;
  3250. bottom: 12px;
  3251. width: 8px;
  3252. cursor: ew-resize;
  3253. }
  3254. ​
  3255. .ath-ai-resize-w {
  3256. left: -4px;
  3257. }
  3258. ​
  3259. .ath-ai-resize-e {
  3260. right: -4px;
  3261. }
  3262. ​
  3263. .ath-ai-resize-s {
  3264. left: 12px;
  3265. right: 12px;
  3266. bottom: -4px;
  3267. height: 8px;
  3268. cursor: ns-resize;
  3269. }
  3270. ​
  3271. .ath-ai-resize-sw,
  3272. .ath-ai-resize-se {
  3273. bottom: -4px;
  3274. width: 16px;
  3275. height: 16px;
  3276. }
  3277. ​
  3278. .ath-ai-resize-sw {
  3279. left: -4px;
  3280. cursor: nesw-resize;
  3281. }
  3282. ​
  3283. .ath-ai-resize-se {
  3284. right: -4px;
  3285. cursor: nwse-resize;
  3286. }
  3287. ​
  3288. .orb-dark .ath-ai-window {
  3289. border-color: var(--orb-border);
  3290. }
  3291. ​
  3292. @media (max-width: 560px) {
  3293. .ath-ai-content {
  3294. padding: var(--orb-space-3);
  3295. }
  3296. }
  3297. ​
  3298. .ath-ai-row.is-stacked {
  3299. grid-template-columns: 1fr;
  3300. gap: var(--orb-space-2);
  3301. }
  3302. ​
  3303. .ath-ai-row.is-stacked .ath-set-control {
  3304. justify-content: stretch;
  3305. }
  3306. ​
  3307. .ath-ai-probe-wrap {
  3308. display: flex;
  3309. flex-direction: column;
  3310. gap: var(--orb-space-2);
  3311. }
  3312. ​
  3313. .ath-ai-probe-out {
  3314. display: flex;
  3315. flex-direction: column;
  3316. gap: 4px;
  3317. font-size: 0.8125rem;
  3318. line-height: 1.5;
  3319. }
  3320. ​
  3321. .ath-ai-probe-out small {
  3322. color: var(--orb-text-muted);
  3323. }
  3324. ​
  3325. .ath-ai-probe-out .is-error {
  3326. color: var(--orb-danger);
  3327. }
  3328. ​
  3329. .ath-ai-approve {
  3330. display: flex;
  3331. flex-direction: column;
  3332. gap: var(--orb-space-3);
  3333. }
  3334. ​
  3335. .ath-ai-approve-reason {
  3336. font-size: 0.8125rem;
  3337. color: var(--orb-text-muted);
  3338. font-style: italic;
  3339. }
  3340. ​
  3341. .ath-ai-diff {
  3342. display: flex;
  3343. flex-direction: column;
  3344. gap: 6px;
  3345. min-width: 0;
  3346. }
  3347. ​
  3348. .ath-ai-diff-stats {
  3349. display: flex;
  3350. gap: var(--orb-space-3);
  3351. font-size: 0.75rem;
  3352. font-weight: 700;
  3353. font-variant-numeric: tabular-nums;
  3354. }
  3355. ​
  3356. .ath-ai-diff-stats .is-add {
  3357. color: var(--orb-success);
  3358. }
  3359. ​
  3360. .ath-ai-diff-stats .is-del {
  3361. color: var(--orb-danger);
  3362. }
  3363. ​
  3364. .ath-ai-diff-body {
  3365. max-height: min(56vh, 520px);
  3366. overflow: auto;
  3367. border: 1px solid var(--orb-border);
  3368. border-radius: var(--orb-radius-sm);
  3369. background: var(--ath-editor-bg);
  3370. font-family: var(--ath-font-code);
  3371. font-size: 0.75rem;
  3372. line-height: 1.55;
  3373. padding: 4px 0;
  3374. }
  3375. ​
  3376. .ath-ai-diff-line {
  3377. display: grid;
  3378. grid-template-columns: 40px 40px minmax(0, 1fr);
  3379. white-space: pre;
  3380. min-width: max-content;
  3381. }
  3382. ​
  3383. .ath-ai-diff-no {
  3384. padding: 0 6px;
  3385. text-align: right;
  3386. color: var(--orb-text-subtle);
  3387. user-select: none;
  3388. }
  3389. ​
  3390. .ath-ai-diff-text {
  3391. padding-right: 12px;
  3392. }
  3393. ​
  3394. .ath-ai-diff-line.is-add {
  3395. background: color-mix(in srgb, var(--orb-success) 14%, transparent);
  3396. }
  3397. ​
  3398. .ath-ai-diff-line.is-del {
  3399. background: color-mix(in srgb, var(--orb-danger) 13%, transparent);
  3400. }
  3401. ​
  3402. .ath-ai-diff-gap {
  3403. padding: 2px 12px;
  3404. color: var(--orb-text-subtle);
  3405. font-family: var(--orb-font-sans, inherit);
  3406. }
  3407. ​
  3408. .ath-ai-changes {
  3409. display: flex;
  3410. flex-direction: column;
  3411. border: 1px solid var(--orb-border);
  3412. border-radius: var(--orb-radius-sm);
  3413. }
  3414. ​
  3415. .ath-ai-change {
  3416. display: flex;
  3417. align-items: center;
  3418. gap: var(--orb-space-3);
  3419. padding: 8px 8px 8px 12px;
  3420. border-bottom: 1px solid var(--orb-border);
  3421. }
  3422. ​
  3423. .ath-ai-change:last-child {
  3424. border-bottom: none;
  3425. }
  3426. ​
  3427. .ath-ai-change.is-undone .ath-ai-change-op {
  3428. text-decoration: line-through;
  3429. color: var(--orb-text-subtle);
  3430. }
  3431. ​
  3432. .ath-ai-change-main {
  3433. flex: 1;
  3434. min-width: 0;
  3435. display: flex;
  3436. flex-direction: column;
  3437. gap: 2px;
  3438. }
  3439. ​
  3440. .ath-ai-change-op {
  3441. font-size: 0.8125rem;
  3442. overflow: hidden;
  3443. text-overflow: ellipsis;
  3444. white-space: nowrap;
  3445. }
  3446. ​
  3447. .ath-ai-change-main small {
  3448. font-size: 0.6875rem;
  3449. color: var(--orb-text-subtle);
  3450. }
  3451. ​
  3452. .ath-ai-change-actions {
  3453. display: flex;
  3454. gap: 2px;
  3455. }
  3456. ​
  3457. .ath-ai-audit {
  3458. display: grid;
  3459. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  3460. gap: var(--orb-space-3);
  3461. align-items: start;
  3462. }
  3463. ​
  3464. .ath-ai-audit-col {
  3465. display: flex;
  3466. flex-direction: column;
  3467. gap: 8px;
  3468. min-width: 0;
  3469. padding: var(--orb-space-3);
  3470. border: 1px solid var(--orb-border);
  3471. border-radius: var(--orb-radius-sm);
  3472. }
  3473. ​
  3474. .ath-ai-audit-col h4 {
  3475. font-size: 0.8125rem;
  3476. font-weight: 700;
  3477. }
  3478. ​
  3479. .ath-ai-audit-col img {
  3480. width: 100%;
  3481. max-height: 320px;
  3482. object-fit: cover;
  3483. object-position: top;
  3484. border: 1px solid var(--orb-border);
  3485. border-radius: var(--orb-radius-xs);
  3486. background: #ffffff;
  3487. }
  3488. ​
  3489. .ath-ai-audit-col ul {
  3490. display: flex;
  3491. flex-direction: column;
  3492. gap: 4px;
  3493. padding-left: 1.1em;
  3494. list-style: disc;
  3495. font-size: 0.75rem;
  3496. line-height: 1.45;
  3497. color: var(--orb-text-muted);
  3498. overflow-wrap: anywhere;
  3499. }
  3500. ​
  3501. .ath-ai-audit-col li.is-high {
  3502. color: var(--orb-danger);
  3503. }
  3504. ​
  3505. .ath-ai-audit-col li.is-ok {
  3506. color: var(--orb-success);
  3507. }
  3508. ​
  3509. .ath-ai-content.is-full {
  3510. padding: 0;
  3511. overflow: hidden;
  3512. display: flex;
  3513. flex-direction: column;
  3514. }
  3515. ​
  3516. .ath-ai-section.is-full {
  3517. flex: 1;
  3518. min-height: 0;
  3519. display: flex;
  3520. flex-direction: column;
  3521. }
  3522. ​
  3523. .ath-ai-snippet {
  3524. max-height: 180px;
  3525. overflow: auto;
  3526. padding: 8px 10px;
  3527. border: 1px solid var(--orb-border);
  3528. border-radius: var(--orb-radius-sm);
  3529. background: var(--orb-surface-alt);
  3530. font-family: var(--ath-font-code);
  3531. font-size: 0.75rem;
  3532. line-height: 1.5;
  3533. white-space: pre-wrap;
  3534. }
  3535. ​
  3536. .ath-ai-chat {
  3537. flex: 1;
  3538. min-height: 0;
  3539. display: flex;
  3540. flex-direction: column;
  3541. }
  3542. ​
  3543. .ath-ai-chat-off {
  3544. display: flex;
  3545. align-items: center;
  3546. justify-content: space-between;
  3547. gap: var(--orb-space-3);
  3548. padding: 8px 12px;
  3549. border-bottom: 1px solid var(--orb-border);
  3550. background: color-mix(in srgb, var(--orb-info, var(--orb-primary)) 8%, var(--orb-surface));
  3551. font-size: 0.8125rem;
  3552. }
  3553. ​
  3554. .ath-ai-chat-off[hidden] {
  3555. display: none;
  3556. }
  3557. ​
  3558. .ath-ai-chat-list {
  3559. flex: 1;
  3560. min-height: 0;
  3561. overflow-y: auto;
  3562. padding: var(--orb-space-3) var(--orb-space-4);
  3563. display: flex;
  3564. flex-direction: column;
  3565. gap: var(--orb-space-3);
  3566. }
  3567. ​
  3568. .ath-ai-empty {
  3569. margin: auto;
  3570. max-width: 420px;
  3571. text-align: center;
  3572. display: flex;
  3573. flex-direction: column;
  3574. align-items: center;
  3575. gap: 8px;
  3576. padding: var(--orb-space-6) 0;
  3577. }
  3578. ​
  3579. .ath-ai-empty-logo {
  3580. display: grid;
  3581. place-items: center;
  3582. width: 44px;
  3583. height: 44px;
  3584. border-radius: var(--orb-radius-full);
  3585. background: var(--orb-primary-dim);
  3586. color: var(--orb-primary);
  3587. }
  3588. ​
  3589. .ath-ai-empty-logo .ath-icon {
  3590. width: 22px;
  3591. height: 22px;
  3592. }
  3593. ​
  3594. .ath-ai-empty-title {
  3595. font-weight: 700;
  3596. font-size: 0.9375rem;
  3597. }
  3598. ​
  3599. .ath-ai-empty-text {
  3600. font-size: 0.8125rem;
  3601. color: var(--orb-text-muted);
  3602. line-height: 1.5;
  3603. }
  3604. ​
  3605. .ath-ai-examples {
  3606. display: flex;
  3607. flex-direction: column;
  3608. gap: 6px;
  3609. width: 100%;
  3610. margin-top: var(--orb-space-2);
  3611. }
  3612. ​
  3613. .ath-ai-example {
  3614. border: 1px solid var(--orb-border);
  3615. border-radius: var(--orb-radius-sm);
  3616. background: var(--orb-surface);
  3617. color: var(--orb-text);
  3618. font: inherit;
  3619. font-size: 0.8125rem;
  3620. text-align: left;
  3621. padding: 8px 12px;
  3622. cursor: pointer;
  3623. transition: border-color var(--orb-dur-fast) var(--orb-ease), background-color var(--orb-dur-fast) var(--orb-ease);
  3624. }
  3625. ​
  3626. .ath-ai-example:hover {
  3627. border-color: var(--orb-primary-border);
  3628. background: var(--orb-surface-hover);
  3629. }
  3630. ​
  3631. .ath-ai-msg {
  3632. display: flex;
  3633. flex-direction: column;
  3634. gap: 4px;
  3635. min-width: 0;
  3636. }
  3637. ​
  3638. .ath-ai-msg.is-user {
  3639. align-self: flex-end;
  3640. max-width: 88%;
  3641. padding: 8px 12px;
  3642. border-radius: var(--orb-radius-md) var(--orb-radius-md) 4px var(--orb-radius-md);
  3643. background: var(--orb-primary-dim);
  3644. }
  3645. ​
  3646. .ath-ai-msg.is-user.is-auto {
  3647. background: color-mix(in srgb, var(--orb-warning) 12%, var(--orb-surface));
  3648. }
  3649. ​
  3650. .ath-ai-msg-head {
  3651. display: flex;
  3652. align-items: center;
  3653. gap: 8px;
  3654. min-width: 0;
  3655. font-size: 0.75rem;
  3656. }
  3657. ​
  3658. .ath-ai-msg-who {
  3659. font-weight: 700;
  3660. white-space: nowrap;
  3661. }
  3662. ​
  3663. .ath-ai-msg-meta {
  3664. flex: 1;
  3665. min-width: 0;
  3666. color: var(--orb-text-subtle);
  3667. white-space: nowrap;
  3668. overflow: hidden;
  3669. text-overflow: ellipsis;
  3670. font-variant-numeric: tabular-nums;
  3671. }
  3672. ​
  3673. .ath-ai-msg-head .ath-icon-btn {
  3674. width: 22px;
  3675. height: 22px;
  3676. opacity: 0.7;
  3677. }
  3678. ​
  3679. .ath-ai-msg-body {
  3680. display: flex;
  3681. flex-direction: column;
  3682. gap: 6px;
  3683. min-width: 0;
  3684. }
  3685. ​
  3686. .ath-ai-md {
  3687. font-size: 0.875rem;
  3688. line-height: 1.6;
  3689. overflow-wrap: anywhere;
  3690. min-width: 0;
  3691. }
  3692. ​
  3693. .ath-ai-md > * + * {
  3694. margin-top: 0.6em;
  3695. }
  3696. ​
  3697. .ath-ai-md h3,
  3698. .ath-ai-md h4,
  3699. .ath-ai-md h5,
  3700. .ath-ai-md h6 {
  3701. font-size: 0.875rem;
  3702. font-weight: 700;
  3703. }
  3704. ​
  3705. .ath-ai-md h3 {
  3706. font-size: 0.9375rem;
  3707. }
  3708. ​
  3709. .ath-ai-md ul,
  3710. .ath-ai-md ol {
  3711. padding-left: 1.3em;
  3712. }
  3713. ​
  3714. .ath-ai-md ul {
  3715. list-style: disc;
  3716. }
  3717. ​
  3718. .ath-ai-md ol {
  3719. list-style: decimal;
  3720. }
  3721. ​
  3722. .ath-ai-md li + li {
  3723. margin-top: 2px;
  3724. }
  3725. ​
  3726. .ath-ai-md code {
  3727. font-family: var(--ath-font-code);
  3728. font-size: 0.8em;
  3729. padding: 1px 5px;
  3730. border-radius: var(--orb-radius-xs);
  3731. background: var(--orb-surface-alt);
  3732. border: 1px solid var(--orb-border);
  3733. }
  3734. ​
  3735. .ath-ai-md a {
  3736. color: var(--orb-primary-text);
  3737. text-decoration: underline;
  3738. text-underline-offset: 2px;
  3739. }
  3740. ​
  3741. .ath-ai-md a.ath-ai-fileref {
  3742. text-decoration: none;
  3743. }
  3744. ​
  3745. .ath-ai-md a.ath-ai-fileref code {
  3746. color: var(--orb-primary-text);
  3747. border-color: var(--orb-primary-border);
  3748. }
  3749. ​
  3750. .ath-ai-md blockquote {
  3751. padding-left: 10px;
  3752. border-left: 3px solid var(--orb-border-strong);
  3753. color: var(--orb-text-muted);
  3754. }
  3755. ​
  3756. .ath-ai-md hr {
  3757. border: none;
  3758. border-top: 1px solid var(--orb-border);
  3759. }
  3760. ​
  3761. .ath-ai-table {
  3762. overflow-x: auto;
  3763. }
  3764. ​
  3765. .ath-ai-md table {
  3766. border-collapse: collapse;
  3767. font-size: 0.8125rem;
  3768. }
  3769. ​
  3770. .ath-ai-md th,
  3771. .ath-ai-md td {
  3772. border: 1px solid var(--orb-border);
  3773. padding: 4px 8px;
  3774. text-align: left;
  3775. vertical-align: top;
  3776. }
  3777. ​
  3778. .ath-ai-md th {
  3779. background: var(--orb-surface-alt);
  3780. }
  3781. ​
  3782. .ath-ai-code {
  3783. border: 1px solid var(--orb-border);
  3784. border-radius: var(--orb-radius-sm);
  3785. overflow: hidden;
  3786. background: var(--ath-editor-bg);
  3787. }
  3788. ​
  3789. .ath-ai-code-head {
  3790. display: flex;
  3791. align-items: center;
  3792. justify-content: space-between;
  3793. padding: 2px 4px 2px 10px;
  3794. border-bottom: 1px solid var(--orb-border);
  3795. font-size: 0.6875rem;
  3796. color: var(--orb-text-subtle);
  3797. background: var(--orb-surface-alt);
  3798. }
  3799. ​
  3800. .ath-ai-copy {
  3801. border: none;
  3802. background: transparent;
  3803. color: var(--orb-text-muted);
  3804. font: inherit;
  3805. font-size: 0.6875rem;
  3806. padding: 3px 6px;
  3807. border-radius: var(--orb-radius-xs);
  3808. cursor: pointer;
  3809. }
  3810. ​
  3811. .ath-ai-copy:hover {
  3812. background: var(--orb-surface-hover);
  3813. color: var(--orb-text);
  3814. }
  3815. ​
  3816. .ath-ai-code pre {
  3817. margin: 0;
  3818. padding: 8px 10px;
  3819. overflow-x: auto;
  3820. font-family: var(--ath-font-code);
  3821. font-size: 0.75rem;
  3822. line-height: 1.55;
  3823. }
  3824. ​
  3825. .ath-ai-code pre code {
  3826. padding: 0;
  3827. border: none;
  3828. background: none;
  3829. font-size: inherit;
  3830. }
  3831. ​
  3832. .ath-ai-ev {
  3833. display: flex;
  3834. align-items: center;
  3835. gap: 8px;
  3836. min-width: 0;
  3837. font-size: 0.75rem;
  3838. color: var(--orb-text-muted);
  3839. padding: 2px 0;
  3840. }
  3841. ​
  3842. .ath-ai-ev-icon {
  3843. display: grid;
  3844. place-items: center;
  3845. flex-shrink: 0;
  3846. }
  3847. ​
  3848. .ath-ai-ev-icon .ath-icon {
  3849. width: 13px;
  3850. height: 13px;
  3851. }
  3852. ​
  3853. .ath-ai-ev-text {
  3854. flex: 1;
  3855. min-width: 0;
  3856. overflow-wrap: anywhere;
  3857. }
  3858. ​
  3859. .ath-ai-ev.is-ok .ath-ai-ev-icon {
  3860. color: var(--orb-success);
  3861. }
  3862. ​
  3863. .ath-ai-ev.is-danger {
  3864. color: var(--orb-danger);
  3865. }
  3866. ​
  3867. .ath-ai-ev.is-warn {
  3868. color: color-mix(in srgb, var(--orb-warning) 75%, var(--orb-text));
  3869. }
  3870. ​
  3871. .ath-ai-ev.is-change {
  3872. color: var(--orb-text);
  3873. padding: 4px 4px 4px 8px;
  3874. border: 1px solid var(--orb-border);
  3875. border-radius: var(--orb-radius-sm);
  3876. background: var(--orb-surface-alt);
  3877. }
  3878. ​
  3879. .ath-ai-ev.is-change .ath-ai-ev-icon {
  3880. color: var(--orb-success);
  3881. }
  3882. ​
  3883. .ath-ai-ev.is-undone .ath-ai-ev-text {
  3884. text-decoration: line-through;
  3885. color: var(--orb-text-subtle);
  3886. }
  3887. ​
  3888. .ath-ai-ev-actions {
  3889. display: flex;
  3890. gap: 2px;
  3891. }
  3892. ​
  3893. .ath-ai-ev-actions .ath-icon-btn {
  3894. width: 24px;
  3895. height: 24px;
  3896. }
  3897. ​
  3898. .ath-ai-ev-spin {
  3899. width: 10px;
  3900. height: 10px;
  3901. border: 2px solid var(--orb-border-strong);
  3902. border-top-color: var(--orb-primary);
  3903. border-radius: 50%;
  3904. animation: ath-ai-spin 0.8s linear infinite;
  3905. }
  3906. ​
  3907. .ath-ai-msg:not(.is-pending) .ath-ai-ev-spin {
  3908. display: none;
  3909. }
  3910. ​
  3911. @keyframes ath-ai-spin {
  3912. to {
  3913. transform: rotate(360deg);
  3914. }
  3915. }
  3916. ​
  3917. .ath-ai-ev-detail {
  3918. margin: 0 0 4px 21px;
  3919. font-size: 0.6875rem;
  3920. color: var(--orb-text-muted);
  3921. }
  3922. ​
  3923. .ath-ai-ev-detail summary {
  3924. cursor: pointer;
  3925. }
  3926. ​
  3927. .ath-ai-ev-detail pre {
  3928. white-space: pre-wrap;
  3929. font-family: var(--ath-font-code);
  3930. margin-top: 4px;
  3931. }
  3932. ​
  3933. .ath-ai-typing {
  3934. display: flex;
  3935. align-items: center;
  3936. gap: 4px;
  3937. padding: 4px 0;
  3938. }
  3939. ​
  3940. .ath-ai-typing span {
  3941. width: 6px;
  3942. height: 6px;
  3943. border-radius: 50%;
  3944. background: var(--orb-text-subtle);
  3945. animation: ath-ai-dot 1.2s ease-in-out infinite;
  3946. }
  3947. ​
  3948. .ath-ai-typing span:nth-child(2) {
  3949. animation-delay: 0.15s;
  3950. }
  3951. ​
  3952. .ath-ai-typing span:nth-child(3) {
  3953. animation-delay: 0.3s;
  3954. }
  3955. ​
  3956. .ath-ai-typing small {
  3957. margin-left: 6px;
  3958. font-size: 0.6875rem;
  3959. color: var(--orb-text-subtle);
  3960. }
  3961. ​
  3962. @keyframes ath-ai-dot {
  3963. 0%, 80%, 100% {
  3964. opacity: 0.25;
  3965. transform: translateY(0);
  3966. }
  3967. 40% {
  3968. opacity: 1;
  3969. transform: translateY(-2px);
  3970. }
  3971. }
  3972. ​
  3973. @media (prefers-reduced-motion: reduce) {
  3974. .ath-ai-typing span,
  3975. .ath-ai-ev-spin {
  3976. animation: none;
  3977. }
  3978. }
  3979. ​
  3980. .ath-ai-attach {
  3981. display: flex;
  3982. flex-wrap: wrap;
  3983. gap: 4px;
  3984. }
  3985. ​
  3986. .ath-ai-chip-static {
  3987. font-size: 0.6875rem;
  3988. padding: 1px 8px;
  3989. border-radius: var(--orb-radius-full);
  3990. background: var(--orb-surface);
  3991. color: var(--orb-text-muted);
  3992. border: 1px solid var(--orb-border);
  3993. }
  3994. ​
  3995. .ath-ai-composer {
  3996. display: flex;
  3997. flex-direction: column;
  3998. gap: 6px;
  3999. padding: 8px 10px 10px;
  4000. border-top: 1px solid var(--orb-border);
  4001. background: var(--orb-surface);
  4002. }
  4003. ​
  4004. .ath-ai-chips {
  4005. display: flex;
  4006. flex-wrap: wrap;
  4007. gap: 6px;
  4008. }
  4009. ​
  4010. .ath-ai-chips[hidden] {
  4011. display: none;
  4012. }
  4013. ​
  4014. .ath-ai-chip {
  4015. display: inline-flex;
  4016. align-items: center;
  4017. gap: 6px;
  4018. max-width: 100%;
  4019. padding: 2px 4px 2px 8px;
  4020. border: 1px solid var(--orb-primary-border);
  4021. border-radius: var(--orb-radius-full);
  4022. background: var(--orb-primary-dim);
  4023. color: var(--orb-primary-text);
  4024. font-size: 0.75rem;
  4025. }
  4026. ​
  4027. .ath-ai-chip img {
  4028. width: 18px;
  4029. height: 18px;
  4030. object-fit: cover;
  4031. border-radius: 3px;
  4032. }
  4033. ​
  4034. .ath-ai-chip .ath-icon {
  4035. width: 13px;
  4036. height: 13px;
  4037. }
  4038. ​
  4039. .ath-ai-chip button {
  4040. display: grid;
  4041. place-items: center;
  4042. width: 18px;
  4043. height: 18px;
  4044. border: none;
  4045. border-radius: 50%;
  4046. background: transparent;
  4047. color: inherit;
  4048. cursor: pointer;
  4049. }
  4050. ​
  4051. .ath-ai-chip button:hover {
  4052. background: color-mix(in srgb, var(--orb-primary) 18%, transparent);
  4053. }
  4054. ​
  4055. .ath-ai-chat-input {
  4056. width: 100%;
  4057. min-height: 44px;
  4058. max-height: 220px;
  4059. resize: none;
  4060. padding: 8px 10px;
  4061. border: 1px solid var(--orb-border-strong);
  4062. border-radius: var(--orb-radius-sm);
  4063. background: var(--orb-bg);
  4064. color: var(--orb-text);
  4065. font: inherit;
  4066. font-size: 0.875rem;
  4067. line-height: 1.5;
  4068. outline: none;
  4069. transition: border-color var(--orb-dur-fast) var(--orb-ease), box-shadow var(--orb-dur-fast) var(--orb-ease);
  4070. }
  4071. ​
  4072. .ath-ai-chat-input:focus {
  4073. border-color: var(--orb-primary);
  4074. box-shadow: 0 0 0 3px var(--orb-primary-dim);
  4075. }
  4076. ​
  4077. .ath-ai-composer-bar {
  4078. display: flex;
  4079. align-items: center;
  4080. gap: 6px;
  4081. min-width: 0;
  4082. }
  4083. ​
  4084. .ath-ai-override.orb-select {
  4085. width: auto;
  4086. max-width: 46%;
  4087. min-height: 30px;
  4088. padding-top: 3px;
  4089. padding-bottom: 3px;
  4090. font-size: 0.75rem;
  4091. }
  4092. ​
  4093. .ath-ai-total {
  4094. font-size: 0.6875rem;
  4095. color: var(--orb-text-subtle);
  4096. white-space: nowrap;
  4097. font-variant-numeric: tabular-nums;
  4098. }
  4099. ​
  4100. .ath-ai-send .ath-icon {
  4101. width: 14px;
  4102. height: 14px;
  4103. }
  4104. ​
  4105. .ath-ai-window.is-compact .ath-ai-total {
  4106. display: none;
  4107. }
  4108. ​
  4109. .ath-ai-engine {
  4110. display: flex;
  4111. flex-direction: column;
  4112. gap: 6px;
  4113. width: 100%;
  4114. }
  4115. ​
  4116. .ath-ai-engine-head {
  4117. display: flex;
  4118. align-items: center;
  4119. justify-content: space-between;
  4120. gap: var(--orb-space-3);
  4121. width: 100%;
  4122. font-weight: 600;
  4123. }
  4124. ​
  4125. .ath-ai-engine-row .ath-set-label > span {
  4126. width: 100%;
  4127. }
  4128. ​
  4129. .ath-ai-engine-row.is-disabled .ath-ai-engine {
  4130. opacity: 0.55;
  4131. }
  4132. ​
  4133. .ath-ai-fee-row {
  4134. display: flex;
  4135. align-items: center;
  4136. gap: 8px;
  4137. font-size: 0.75rem;
  4138. color: var(--orb-text-muted);
  4139. }
  4140. ​
  4141. .ath-ai-fee.orb-input {
  4142. width: 110px;
  4143. min-height: 30px;
  4144. padding-top: 3px;
  4145. padding-bottom: 3px;
  4146. font-size: 0.8125rem;
  4147. }
  4148. ​
  4149. .cm-ghost-text {
  4150. color: var(--orb-text-subtle);
  4151. opacity: 0.8;
  4152. white-space: pre;
  4153. pointer-events: none;
  4154. }
  4155. ​
  4156. body.ath-ai-docked .ath-main {
  4157. margin-right: var(--ath-ai-dock-w, 420px);
  4158. }
  4159. ​
  4160. .ath-ai-window.is-docked {
  4161. top: var(--ath-topbar-h);
  4162. bottom: var(--ath-status-h);
  4163. right: 0;
  4164. left: auto;
  4165. height: auto;
  4166. z-index: 60;
  4167. border-radius: 0;
  4168. border-width: 0 0 0 1px;
  4169. box-shadow: none;
  4170. }
  4171. ​
  4172. .ath-ai-window.is-docked .ath-ai-head {
  4173. cursor: default;
  4174. border-radius: 0;
  4175. }
  4176. ​
  4177. .ath-ai-window.is-docked .ath-ai-body {
  4178. border-radius: 0;
  4179. }
  4180. ​
  4181. .ath-ai-window.is-docked .ath-ai-resize:not(.ath-ai-resize-w) {
  4182. display: none;
  4183. }
  4184. ​
  4185. .ath-ai-window.is-docked .ath-ai-resize-w {
  4186. left: -3px;
  4187. top: 0;
  4188. bottom: 0;
  4189. width: 6px;
  4190. }
  4191. ​
  4192. .ath-ai-proof {
  4193. display: flex;
  4194. flex-direction: column;
  4195. gap: var(--orb-space-3);
  4196. }
  4197. ​
  4198. .ath-ai-proof-diff {
  4199. max-height: min(50vh, 460px);
  4200. overflow: auto;
  4201. padding: 10px 12px;
  4202. border: 1px solid var(--orb-border);
  4203. border-radius: var(--orb-radius-sm);
  4204. background: var(--orb-surface-alt);
  4205. font-size: 0.875rem;
  4206. line-height: 1.65;
  4207. white-space: pre-wrap;
  4208. overflow-wrap: anywhere;
  4209. }
  4210. ​
  4211. .ath-ai-proof-diff del {
  4212. color: var(--orb-danger);
  4213. background: color-mix(in srgb, var(--orb-danger) 12%, transparent);
  4214. text-decoration: line-through;
  4215. }
  4216. ​
  4217. .ath-ai-proof-diff ins {
  4218. color: color-mix(in srgb, var(--orb-success) 70%, var(--orb-text));
  4219. background: color-mix(in srgb, var(--orb-success) 14%, transparent);
  4220. text-decoration: none;
  4221. }
  4222. ​
  4223. .ath-ai-proof-notes-head {
  4224. font-size: 0.8125rem;
  4225. font-weight: 700;
  4226. margin-bottom: 4px;
  4227. }
  4228. ​
  4229. .ath-ai-proof-meta {
  4230. font-size: 0.75rem;
  4231. color: var(--orb-text-subtle);
  4232. }
  4233. ​
  4234. .ath-ai-proof-opts {
  4235. display: flex;
  4236. flex-direction: column;
  4237. gap: 8px;
  4238. }
  4239. ​
  4240. .ath-ai-proof-style {
  4241. margin-top: 6px;
  4242. }
  4243. ​
  4244. .ath-ai-suggest {
  4245. display: flex;
  4246. flex-direction: column;
  4247. max-height: 240px;
  4248. overflow-y: auto;
  4249. border: 1px solid var(--orb-border-strong);
  4250. border-radius: var(--orb-radius-sm);
  4251. background: var(--orb-surface);
  4252. box-shadow: var(--orb-shadow-lg);
  4253. padding: 4px;
  4254. }
  4255. ​
  4256. .ath-ai-suggest[hidden] {
  4257. display: none;
  4258. }
  4259. ​
  4260. .ath-ai-suggest-item {
  4261. display: flex;
  4262. align-items: baseline;
  4263. gap: 10px;
  4264. width: 100%;
  4265. padding: 5px 8px;
  4266. border: none;
  4267. border-radius: var(--orb-radius-xs);
  4268. background: transparent;
  4269. color: var(--orb-text-muted);
  4270. font: inherit;
  4271. font-size: 0.8125rem;
  4272. text-align: left;
  4273. cursor: pointer;
  4274. }
  4275. ​
  4276. .ath-ai-suggest-item code,
  4277. .ath-ai-cmd code {
  4278. font-family: var(--ath-font-code);
  4279. font-size: 0.8125rem;
  4280. color: var(--orb-primary-text);
  4281. white-space: nowrap;
  4282. }
  4283. ​
  4284. .ath-ai-suggest-item span {
  4285. overflow: hidden;
  4286. text-overflow: ellipsis;
  4287. white-space: nowrap;
  4288. }
  4289. ​
  4290. .ath-ai-suggest-item.is-active,
  4291. .ath-ai-suggest-item:hover {
  4292. background: var(--orb-primary-dim);
  4293. color: var(--orb-text);
  4294. }
  4295. ​
  4296. .ath-ai-cmd-list {
  4297. display: flex;
  4298. flex-direction: column;
  4299. gap: 4px;
  4300. }
  4301. ​
  4302. .ath-ai-cmd {
  4303. display: grid;
  4304. grid-template-columns: 110px minmax(0, 1fr);
  4305. gap: 10px;
  4306. font-size: 0.8125rem;
  4307. color: var(--orb-text-muted);
  4308. line-height: 1.45;
  4309. }
  4310. ​
  4311. .ath-ai-eval-tasks {
  4312. display: grid;
  4313. grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  4314. gap: 6px 16px;
  4315. }
  4316. ​
  4317. .ath-ai-eval-progress {
  4318. font-size: 0.8125rem;
  4319. color: var(--orb-text-muted);
  4320. min-height: 1.2em;
  4321. }
  4322. ​
  4323. .ath-ai-eval-table {
  4324. font-size: 0.75rem;
  4325. min-width: 640px;
  4326. }
  4327. ​
  4328. .ath-ai-eval-table td,
  4329. .ath-ai-eval-table th {
  4330. padding: 6px 8px;
  4331. vertical-align: top;
  4332. }
  4333. ​
  4334. .ath-ai-eval-table tr.is-total td {
  4335. font-weight: 700;
  4336. border-top: 1px solid var(--orb-border-strong);
  4337. }
  4338. ​
  4339. .ath-ai-eval-score {
  4340. font-weight: 700;
  4341. font-variant-numeric: tabular-nums;
  4342. }
  4343. ​
  4344. .ath-ai-eval-score.is-good {
  4345. color: var(--orb-success);
  4346. }
  4347. ​
  4348. .ath-ai-eval-score.is-mid {
  4349. color: color-mix(in srgb, var(--orb-warning) 75%, var(--orb-text));
  4350. }
  4351. ​
  4352. .ath-ai-eval-score.is-bad {
  4353. color: var(--orb-danger);
  4354. }
  4355. ​
  4356. .ath-ai-eval-model,
  4357. .ath-ai-eval-notes {
  4358. color: var(--orb-text-muted);
  4359. overflow-wrap: anywhere;
  4360. }
  4361. ​
  4362. .ath-ai-eval-history {
  4363. display: flex;
  4364. flex-direction: column;
  4365. gap: 6px;
  4366. }
  4367. ​
  4368. .ath-ai-eval-run {
  4369. display: flex;
  4370. flex-direction: column;
  4371. gap: 2px;
  4372. padding: 8px 10px;
  4373. border: 1px solid var(--orb-border);
  4374. border-radius: var(--orb-radius-sm);
  4375. font-size: 0.8125rem;
  4376. }
  4377. ​
  4378. .ath-ai-eval-run small {
  4379. font-size: 0.6875rem;
  4380. color: var(--orb-text-subtle);
  4381. }
  4382. ​
  4383. .ath-ai-secret {
  4384. display: inline-block;
  4385. padding: 0 6px;
  4386. border-radius: 999px;
  4387. background: color-mix(in srgb, var(--orb-success) 14%, transparent);
  4388. color: var(--orb-text);
  4389. font-family: var(--orb-font-mono, monospace);
  4390. font-size: 0.85em;
  4391. line-height: 1.5;
  4392. white-space: nowrap;
  4393. cursor: help;
  4394. }
  4395. ​
  4396. .ath-ai-redact-list {
  4397. list-style: none;
  4398. margin: 0 0 var(--orb-space-3);
  4399. padding: 0;
  4400. display: flex;
  4401. flex-direction: column;
  4402. gap: 6px;
  4403. }
  4404. ​
  4405. .ath-ai-redact-list li {
  4406. display: flex;
  4407. flex-wrap: wrap;
  4408. align-items: center;
  4409. gap: 8px;
  4410. padding: 6px 0;
  4411. border-bottom: 1px solid var(--orb-border);
  4412. }
  4413. ​
  4414. .ath-ai-redact-list small {
  4415. color: var(--orb-text-muted);
  4416. flex: 1 1 120px;
  4417. min-width: 0;
  4418. overflow-wrap: anywhere;
  4419. }
  4420. ​
  4421. .ath-ai-redact-out pre {
  4422. margin: 0;
  4423. padding: var(--orb-space-3);
  4424. max-height: 260px;
  4425. overflow: auto;
  4426. border: 1px solid var(--orb-border);
  4427. border-radius: var(--orb-radius-sm, 6px);
  4428. font-size: 0.8rem;
  4429. white-space: pre-wrap;
  4430. overflow-wrap: anywhere;
  4431. }
  4432. ​
  4433. .ath-ai-redact-sum {
  4434. margin: var(--orb-space-2) 0;
  4435. font-size: 0.8rem;
  4436. color: var(--orb-text-muted);
  4437. }
  4438. ​
  4439. .ath-ai-redact-hit {
  4440. background: color-mix(in srgb, var(--orb-warning) 30%, transparent);
  4441. color: inherit;
  4442. border-radius: 3px;
  4443. }
  4444. ​
  4445. .ath-link-hover {
  4446. text-decoration: underline;
  4447. text-underline-offset: 2px;
  4448. cursor: pointer;
  4449. color: var(--orb-primary-text);
  4450. }
  4451. ​
  4452. .ath-link-confirm {
  4453. display: flex;
  4454. flex-direction: column;
  4455. gap: var(--orb-space-2);
  4456. }
  4457. ​
  4458. .ath-link-host {
  4459. font-size: 1.05rem;
  4460. font-weight: 600;
  4461. overflow-wrap: anywhere;
  4462. }
  4463. ​
  4464. .ath-link-full {
  4465. padding: var(--orb-space-2) var(--orb-space-3);
  4466. border: 1px solid var(--orb-border);
  4467. border-radius: var(--orb-radius-sm, 6px);
  4468. font-family: var(--orb-font-mono, monospace);
  4469. font-size: 0.8rem;
  4470. color: var(--orb-text-muted);
  4471. word-break: break-all;
  4472. max-height: 160px;
  4473. overflow: auto;
  4474. }
  4475. ​
  4476. .ath-ai-relay-badge {
  4477. padding: 1px 8px;
  4478. font-size: 0.7rem;
  4479. font-weight: 600;
  4480. }
  4481. ​
  4482. .ath-ai-relay-files {
  4483. flex-wrap: wrap;
  4484. justify-content: flex-start;
  4485. }
  4486. ​
  4487. .ath-ai-relay-how {
  4488. display: grid;
  4489. grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  4490. gap: var(--orb-space-3);
  4491. margin: var(--orb-space-3) 0;
  4492. }
  4493. ​
  4494. .ath-ai-relay-how > div {
  4495. padding: var(--orb-space-3);
  4496. border: 1px solid var(--orb-border);
  4497. border-radius: var(--orb-radius-sm, 6px);
  4498. min-width: 0;
  4499. }
  4500. ​
  4501. .ath-ai-relay-how h4 {
  4502. margin: 0 0 var(--orb-space-2);
  4503. font-size: 0.85rem;
  4504. }
  4505. ​
  4506. .ath-ai-relay-how ol {
  4507. margin: 0 0 var(--orb-space-2);
  4508. padding-left: 1.2em;
  4509. font-size: 0.8rem;
  4510. display: flex;
  4511. flex-direction: column;
  4512. gap: 6px;
  4513. overflow-wrap: anywhere;
  4514. }
  4515. ​
  4516. .ath-ai-relay-cmd {
  4517. display: flex;
  4518. align-items: center;
  4519. gap: 6px;
  4520. margin-top: 4px;
  4521. }
  4522. ​
  4523. .ath-ai-relay-cmd code {
  4524. flex: 1 1 auto;
  4525. min-width: 0;
  4526. padding: 4px 8px;
  4527. border-radius: var(--orb-radius-sm, 6px);
  4528. background: var(--orb-surface-alt);
  4529. font-family: var(--orb-font-mono, monospace);
  4530. font-size: 0.75rem;
  4531. overflow-x: auto;
  4532. white-space: nowrap;
  4533. }
  4534. ​
  4535. .ath-ai-relay-result {
  4536. margin: 0;
  4537. font-size: 0.8rem;
  4538. color: var(--orb-text-muted);
  4539. min-height: 1em;
  4540. }
  4541. ​
  4542. .ath-ai-relay-result.is-ok {
  4543. color: var(--orb-success);
  4544. }
  4545. ​
  4546. .ath-ai-relay-result.is-error {
  4547. color: var(--orb-danger);
  4548. }
  4549. ​
  4550. .ath-ai-engine-name {
  4551. display: inline-flex;
  4552. align-items: center;
  4553. gap: 8px;
  4554. min-width: 0;
  4555. }
  4556. ​
  4557. .ath-menu-toggle,
  4558. .ath-mobile-nav {
  4559. display: none;
  4560. }
  4561. ​
  4562. @media (max-width: 720px) {
  4563. .ath-shell {
  4564. grid-template-rows: var(--ath-topbar-h) minmax(0, 1fr) auto;
  4565. }
  4566. ​
  4567. .ath-statusbar {
  4568. display: none;
  4569. }
  4570. ​
  4571. .ath-topbar {
  4572. padding: 0 var(--orb-space-2);
  4573. gap: var(--orb-space-1);
  4574. min-width: 0;
  4575. }
  4576. ​
  4577. .ath-menu-toggle {
  4578. display: inline-flex;
  4579. }
  4580. ​
  4581. .ath-menus {
  4582. display: none;
  4583. }
  4584. ​
  4585. body.ath-menus-open .ath-menus {
  4586. position: fixed;
  4587. top: var(--ath-topbar-h);
  4588. left: 0;
  4589. right: 0;
  4590. bottom: 0;
  4591. z-index: 150;
  4592. display: flex;
  4593. flex-direction: column;
  4594. align-items: stretch;
  4595. gap: 2px;
  4596. padding: var(--orb-space-2) var(--orb-space-3) calc(var(--orb-space-6) + env(safe-area-inset-bottom));
  4597. overflow-y: auto;
  4598. background: var(--orb-bg);
  4599. }
  4600. ​
  4601. body.ath-menus-open .ath-menus .orb-dropdown {
  4602. display: block;
  4603. }
  4604. ​
  4605. body.ath-menus-open .ath-menu-btn {
  4606. width: 100%;
  4607. height: 48px;
  4608. padding: 0 var(--orb-space-3);
  4609. text-align: left;
  4610. font-size: 1rem;
  4611. }
  4612. ​
  4613. body.ath-menus-open .ath-menus .orb-dropdown-menu {
  4614. position: static;
  4615. width: auto;
  4616. min-width: 0;
  4617. margin: 0 0 var(--orb-space-2);
  4618. box-shadow: none;
  4619. animation: none;
  4620. }
  4621. ​
  4622. body.ath-menus-open .ath-menus .orb-dropdown-item {
  4623. min-height: 44px;
  4624. font-size: 0.9375rem;
  4625. }
  4626. ​
  4627. .ath-menus .orb-kbd,
  4628. .ath-context-menu .orb-kbd,
  4629. .ath-shortcuts {
  4630. display: none;
  4631. }
  4632. ​
  4633. .ath-topbar-actions {
  4634. gap: 0;
  4635. }
  4636. ​
  4637. .ath-sidebar {
  4638. width: 100%;
  4639. border-right: none;
  4640. box-shadow: none;
  4641. }
  4642. ​
  4643. .ath-preview {
  4644. width: 100%;
  4645. border-left: none;
  4646. box-shadow: none;
  4647. }
  4648. ​
  4649. .ath-mobile-nav {
  4650. display: grid;
  4651. grid-template-columns: repeat(4, 1fr);
  4652. padding-bottom: env(safe-area-inset-bottom);
  4653. background: var(--orb-bg);
  4654. border-top: 1px solid var(--orb-border);
  4655. position: relative;
  4656. z-index: 160;
  4657. }
  4658. ​
  4659. .ath-mobile-nav button {
  4660. display: flex;
  4661. flex-direction: column;
  4662. align-items: center;
  4663. justify-content: center;
  4664. gap: 2px;
  4665. min-height: 56px;
  4666. border: none;
  4667. background: transparent;
  4668. color: var(--orb-text-muted);
  4669. font: inherit;
  4670. font-size: 0.6875rem;
  4671. font-weight: 600;
  4672. cursor: pointer;
  4673. -webkit-tap-highlight-color: transparent;
  4674. }
  4675. ​
  4676. .ath-mobile-nav button .ath-icon {
  4677. width: 22px;
  4678. height: 22px;
  4679. }
  4680. ​
  4681. .ath-mobile-nav button.is-active {
  4682. color: var(--orb-primary-text);
  4683. }
  4684. ​
  4685. .ath-mobile-nav button.is-active .ath-icon {
  4686. background: var(--orb-primary-dim);
  4687. border-radius: var(--orb-radius-full);
  4688. padding: 2px 14px;
  4689. box-sizing: content-box;
  4690. }
  4691. ​
  4692. .ath-welcome-actions {
  4693. flex-wrap: wrap;
  4694. justify-content: center;
  4695. }
  4696. ​
  4697. .ath-tabs {
  4698. overflow-x: auto;
  4699. }
  4700. }
  4701. ​
  4702. .ath-keybar {
  4703. display: none;
  4704. }
  4705. ​
  4706. @media (max-width: 720px) {
  4707. .ath-shell {
  4708. height: var(--ath-vh, 100dvh);
  4709. }
  4710. ​
  4711. body.ath-keybar-on .ath-keybar {
  4712. position: absolute;
  4713. left: 0;
  4714. right: 0;
  4715. bottom: 0;
  4716. z-index: 5;
  4717. display: flex;
  4718. gap: 4px;
  4719. height: 44px;
  4720. padding: 4px 6px;
  4721. overflow-x: auto;
  4722. overscroll-behavior-x: contain;
  4723. scrollbar-width: none;
  4724. background: var(--orb-surface-alt);
  4725. border-top: 1px solid var(--orb-border);
  4726. }
  4727. ​
  4728. .ath-keybar::-webkit-scrollbar {
  4729. display: none;
  4730. }
  4731. ​
  4732. body.ath-keybar-on .ath-editor-host {
  4733. bottom: 44px;
  4734. }
  4735. ​
  4736. .ath-key {
  4737. flex: 0 0 auto;
  4738. min-width: 36px;
  4739. height: 36px;
  4740. padding: 0 8px;
  4741. border: 1px solid var(--orb-border);
  4742. border-radius: var(--orb-radius-sm);
  4743. background: var(--orb-surface);
  4744. color: var(--orb-text);
  4745. font-family: var(--orb-font-mono);
  4746. font-size: 0.9375rem;
  4747. touch-action: manipulation;
  4748. -webkit-tap-highlight-color: transparent;
  4749. user-select: none;
  4750. }
  4751. ​
  4752. .ath-key.is-wide {
  4753. font-family: inherit;
  4754. font-size: 0.8125rem;
  4755. font-weight: 600;
  4756. }
  4757. ​
  4758. .ath-key.is-icon {
  4759. display: inline-flex;
  4760. align-items: center;
  4761. justify-content: center;
  4762. }
  4763. ​
  4764. .ath-key:active {
  4765. background: var(--orb-primary-dim);
  4766. }
  4767. ​
  4768. body.ath-touch .orb-dropdown-item,
  4769. body.ath-touch .ath-context-menu .orb-dropdown-item {
  4770. min-height: 44px;
  4771. }
  4772. }
  4773. ​