v1.5.0
AtheraStudio Code
- :root {
- --ath-font-code: "geist-mono", ui-monospace, "Cascadia Code", Consolas, monospace;
- --ath-font-size: 14px;
- --ath-topbar-h: 46px;
- --ath-status-h: 26px;
-
- --ath-editor-bg: var(--orb-surface);
- --ath-active-line: color-mix(in srgb, var(--orb-primary) 5%, transparent);
- --ath-selection: color-mix(in srgb, var(--orb-primary) 22%, transparent);
- --ath-selection-match: color-mix(in srgb, var(--orb-primary) 12%, transparent);
-
- --ath-syn-keyword: #7c3aed;
- --ath-syn-string: #0a7f55;
- --ath-syn-number: #c2410c;
- --ath-syn-comment: #8b95a7;
- --ath-syn-tag: #d6336c;
- --ath-syn-attr: #b45309;
- --ath-syn-property: #1d4ed8;
- --ath-syn-function: #0e7490;
- --ath-syn-type: #a21caf;
- --ath-syn-variable: var(--orb-text);
- --ath-syn-punct: #64748b;
- --ath-syn-meta: #64748b;
- --ath-syn-regexp: #db2777;
- }
-
- .orb-dark {
- --ath-active-line: rgba(255, 255, 255, 0.03);
- --ath-selection: color-mix(in srgb, var(--orb-primary) 32%, transparent);
-
- --ath-syn-keyword: #c4b5fd;
- --ath-syn-string: #86efac;
- --ath-syn-number: #fdba74;
- --ath-syn-comment: #61667a;
- --ath-syn-tag: #fb7185;
- --ath-syn-attr: #fcd34d;
- --ath-syn-property: #93c5fd;
- --ath-syn-function: #67e8f9;
- --ath-syn-type: #f0abfc;
- --ath-syn-punct: #9ca3af;
- --ath-syn-meta: #9ca3af;
- --ath-syn-regexp: #f9a8d4;
- }
-
- html,
- body {
- height: 100%;
- overflow: hidden;
- }
-
- body {
- background: var(--orb-bg);
- font-size: 14px;
- }
-
- .ath-icon {
- width: 16px;
- height: 16px;
- flex-shrink: 0;
- }
-
- [hidden] {
- display: none !important;
- }
-
- * {
- scrollbar-width: thin;
- scrollbar-color: var(--orb-border-strong) transparent;
- }
-
- ::-webkit-scrollbar {
- width: 10px;
- height: 10px;
- }
-
- ::-webkit-scrollbar-track {
- background: transparent;
- }
-
- ::-webkit-scrollbar-thumb {
- background: var(--orb-border-strong);
- border: 3px solid transparent;
- border-radius: 10px;
- background-clip: padding-box;
- }
-
- ::-webkit-scrollbar-thumb:hover {
- background-color: var(--orb-text-subtle);
- }
-
- ::-webkit-scrollbar-corner {
- background: transparent;
- }
-
- .ath-shell {
- height: 100vh;
- height: 100dvh;
- display: grid;
- grid-template-rows: var(--ath-topbar-h) minmax(0, 1fr) var(--ath-status-h);
- }
-
- .ath-topbar {
- position: relative;
- z-index: 100;
- display: flex;
- align-items: center;
- gap: var(--orb-space-4);
- padding: 0 var(--orb-space-3);
- background: var(--orb-bg);
- border-bottom: 1px solid var(--orb-border);
- }
-
- .ath-brand {
- display: flex;
- align-items: center;
- gap: 9px;
- color: var(--orb-text);
- white-space: nowrap;
- }
-
- .ath-logo {
- width: 28px;
- height: 28px;
- object-fit: contain;
- }
-
- .ath-brand-name {
- font-size: 0.875rem;
- font-weight: 500;
- letter-spacing: -0.01em;
- }
-
- .ath-brand-name b {
- font-weight: 700;
- color: var(--orb-primary-text);
- }
-
- .ath-menus {
- display: flex;
- align-items: center;
- gap: 2px;
- }
-
- .ath-menu-btn {
- height: 30px;
- padding: 0 10px;
- border: none;
- border-radius: var(--orb-radius-sm);
- background: transparent;
- color: var(--orb-text-muted);
- font-size: 0.8125rem;
- font-weight: 500;
- cursor: pointer;
- transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-menu-btn:hover,
- .ath-menu-btn[aria-expanded="true"] {
- background: var(--orb-surface-alt);
- color: var(--orb-text);
- }
-
- .ath-menu-btn:focus-visible {
- outline: 2px solid var(--orb-primary);
- outline-offset: 1px;
- }
-
- .orb-kbd {
- flex-shrink: 0;
- white-space: nowrap;
- }
-
- .ath-menus .orb-dropdown-menu {
- min-width: 250px;
- width: max-content;
- }
-
- .ath-menus .orb-dropdown-item>span:not(.orb-kbd),
- .ath-context-menu .orb-dropdown-item>span:not(.orb-kbd) {
- white-space: nowrap;
- }
-
- .ath-menus .orb-dropdown-item {
- font-size: 0.8125rem;
- padding: 7px 10px;
- }
-
- .ath-topbar-actions {
- margin-left: auto;
- display: flex;
- align-items: center;
- gap: 4px;
- }
-
- #btn-preview[aria-pressed="true"] {
- color: var(--orb-primary-text);
- background: var(--orb-primary-dim);
- }
-
- .ath-theme-btn .ath-when-dark,
- .orb-dark .ath-theme-btn .ath-when-light {
- display: none;
- }
-
- .orb-dark .ath-theme-btn .ath-when-dark {
- display: inline-flex;
- }
-
- .ath-theme-btn span {
- display: inline-flex;
- }
-
- .ath-accent-menu {
- min-width: 0;
- padding: var(--orb-space-3) var(--orb-space-4) var(--orb-space-4);
- }
-
- .ath-accent-label {
- font-size: 0.6875rem;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- color: var(--orb-text-subtle);
- margin-bottom: var(--orb-space-3);
- }
-
- .ath-accent-grid {
- display: grid;
- grid-template-columns: repeat(4, 28px);
- gap: 10px;
- }
-
- .ath-main {
- position: relative;
- display: flex;
- min-height: 0;
- overflow: hidden;
- }
-
- .ath-pane-head {
- display: flex;
- align-items: center;
- gap: var(--orb-space-2);
- height: 36px;
- flex-shrink: 0;
- padding: 0 6px 0 14px;
- }
-
- .ath-pane-title {
- font-size: 0.6875rem;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- color: var(--orb-text-muted);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- min-width: 0;
- }
-
- .ath-pane-actions {
- margin-left: auto;
- display: flex;
- gap: 2px;
- flex-shrink: 0;
- }
-
- .ath-icon-btn {
- width: 26px;
- height: 26px;
- display: grid;
- place-items: center;
- border: none;
- border-radius: var(--orb-radius-xs);
- background: transparent;
- color: var(--orb-text-muted);
- cursor: pointer;
- transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-icon-btn:hover {
- background: var(--orb-surface-hover);
- color: var(--orb-text);
- }
-
- .ath-icon-btn:disabled {
- opacity: 0.4;
- cursor: default;
- background: transparent;
- color: var(--orb-text-muted);
- }
-
- .ath-icon-btn:focus-visible {
- outline: 2px solid var(--orb-primary);
- outline-offset: -2px;
- }
-
- .ath-sidebar {
- width: var(--ath-sidebar-w, 250px);
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- min-height: 0;
- background: var(--orb-bg);
- }
-
- .ath-explorer {
- flex: 1;
- min-height: 0;
- overflow: auto;
- padding: 2px 0 24px;
- font-size: 0.8125rem;
- outline: none;
- }
-
- .ath-tree-row {
- display: flex;
- align-items: center;
- gap: 5px;
- height: 26px;
- padding: 0 10px 0 calc(8px + var(--depth, 0) * 14px);
- color: var(--orb-text);
- white-space: nowrap;
- cursor: pointer;
- user-select: none;
- outline: none;
- position: relative;
- transition:
- background-color var(--orb-dur) var(--orb-ease),
- color var(--orb-dur) var(--orb-ease),
- box-shadow var(--orb-dur) var(--orb-ease),
- opacity var(--orb-dur) var(--orb-ease);
- }
-
- .ath-tree-row::before {
- content: "";
- position: absolute;
- left: 0;
- top: 4px;
- bottom: 4px;
- width: 2px;
- border-radius: 0 2px 2px 0;
- background: var(--orb-primary);
- opacity: 0;
- transform: scaleY(0.2);
- transition:
- opacity var(--orb-dur) var(--orb-ease),
- transform var(--orb-dur-slow) var(--orb-ease-spring);
- pointer-events: none;
- }
-
- .ath-tree-row.is-selected::before,
- .ath-tree-row.is-active::before {
- opacity: 1;
- transform: scaleY(1);
- }
-
- .ath-tree-row:hover {
- background: var(--orb-surface-hover);
- }
-
- .ath-tree-row:hover .ath-tree-chevron {
- color: var(--orb-text-muted);
- }
-
- .ath-tree-row:active .ath-ficon {
- transform: scale(0.92);
- }
-
- .ath-tree-row.is-entering {
- animation: ath-row-in var(--orb-dur-slow) var(--orb-ease-out) both;
- animation-delay: calc(var(--i, 0) * 18ms);
- }
-
- @keyframes ath-row-in {
- from {
- opacity: 0;
- transform: translateX(-10px);
- }
-
- to {
- opacity: 1;
- transform: none;
- }
- }
-
- @keyframes ath-ficon-pop {
- 0% {
- transform: scale(0.7);
- }
-
- 60% {
- transform: scale(1.18);
- }
-
- 100% {
- transform: scale(1);
- }
- }
-
- .ath-tree-row.is-selected {
- background: var(--orb-surface-hover);
- }
-
- .ath-tree-row.is-selected .ath-ficon,
- .ath-tree-row.is-active .ath-ficon {
- transform: scale(1.06);
- }
-
- .ath-tree-row.is-multi {
- background: var(--orb-primary-dim);
- }
-
- .ath-tree-row.is-active {
- background: var(--orb-primary-dim);
- color: var(--orb-primary-text);
- }
-
- .ath-tree-row:focus-visible {
- box-shadow: inset 0 0 0 1px var(--orb-primary);
- }
-
- .ath-tree-row.is-dragging {
- opacity: 0.45;
- }
-
- .ath-tree-row.is-drop-target {
- background: var(--orb-primary-dim-strong);
- color: var(--orb-primary-text);
- box-shadow: inset 0 0 0 1px var(--orb-primary-border);
- }
-
- .ath-explorer.is-drop-root {
- box-shadow: inset 0 0 0 2px var(--orb-primary-border);
- background: var(--orb-primary-dim);
- }
-
- .ath-tree-chevron {
- width: 14px;
- display: grid;
- place-items: center;
- flex-shrink: 0;
- color: var(--orb-text-subtle);
- transition: color var(--orb-dur) var(--orb-ease);
- }
-
- .ath-tree-chevron .ath-icon {
- width: 12px;
- height: 12px;
- transition: transform var(--orb-dur) var(--orb-ease-spring);
- }
-
- .ath-tree-row.is-open .ath-tree-chevron .ath-icon {
- transform: rotate(90deg);
- }
-
- .ath-tree-name {
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .ath-ficon {
- width: 20px;
- flex-shrink: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- font-family: var(--ath-font-code);
- font-size: 9px;
- font-weight: 800;
- letter-spacing: -0.03em;
- color: var(--orb-text-muted);
- transition:
- transform var(--orb-dur) var(--orb-ease-spring),
- color var(--orb-dur) var(--orb-ease);
- }
-
- .ath-ficon.is-toggled {
- animation: ath-ficon-pop var(--orb-dur-spring) var(--orb-ease-out);
- }
-
- .ath-ficon .ath-icon {
- width: 15px;
- height: 15px;
- }
-
- .ath-ficon-dir {
- color: color-mix(in srgb, var(--orb-primary) 70%, var(--orb-text-muted));
- }
-
- .ath-ficon[data-type="html"] {
- color: var(--orb-orange);
- }
-
- .ath-ficon[data-type="php"] {
- color: var(--orb-indigo);
- }
-
- .ath-ficon[data-type="css"] {
- color: var(--orb-sky);
- font-size: 12px;
- }
-
- .ath-ficon[data-type="js"] {
- color: var(--orb-gold);
- }
-
- .ath-ficon[data-type="ts"] {
- color: var(--orb-cobalt);
- }
-
- .ath-ficon[data-type="json"] {
- color: var(--orb-amber);
- }
-
- .ath-ficon[data-type="md"] {
- color: var(--orb-slate);
- }
-
- .ath-ficon[data-type="img"] {
- color: var(--orb-emerald);
- }
-
- .ath-ficon[data-type="xml"] {
- color: #0d9488;
- }
-
- .ath-ficon[data-type="rss"] {
- color: #f97316;
- }
-
- .ath-ficon[data-type="sitemap"] {
- color: var(--orb-emerald);
- }
-
- .orb-dark .ath-ficon[data-type="xml"] {
- color: #2dd4bf;
- }
-
- .orb-dark .ath-ficon[data-type="php"] {
- color: var(--orb-lavender);
- }
-
- .orb-dark .ath-ficon[data-type="ts"] {
- color: #60a5fa;
- }
-
- .orb-dark .ath-ficon[data-type="md"] {
- color: var(--orb-text-muted);
- }
-
- .ath-sidebar-empty {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-2);
- padding: var(--orb-space-2) var(--orb-space-4) var(--orb-space-4);
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- }
-
- .ath-sidebar-empty p {
- margin-bottom: var(--orb-space-1);
- }
-
- .ath-hint {
- font-size: 0.75rem;
- color: var(--orb-text-subtle);
- margin-top: var(--orb-space-2);
- line-height: 1.5;
- }
-
- .ath-tree-spacer {
- position: relative;
- min-height: 1px;
- }
-
- .ath-tree-window {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- will-change: transform;
- }
-
- .ath-tree-row.is-loading {
- color: var(--orb-text-subtle);
- cursor: default;
- }
-
- .ath-tree-message {
- padding: var(--orb-space-3) var(--orb-space-4);
- color: var(--orb-text-subtle);
- font-size: 0.8125rem;
- }
-
- .ath-tree-message.is-error {
- color: var(--orb-danger);
- }
-
- .ath-spinner.ath-spinner-sm {
- width: 13px;
- height: 13px;
- border-width: 2px;
- margin: 0 3px;
- }
-
- .ath-splitter {
- position: relative;
- z-index: 5;
- flex: 0 0 5px;
- margin: 0 -2px;
- cursor: col-resize;
- touch-action: none;
- }
-
- .ath-splitter::after {
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- left: 2px;
- width: 1px;
- background: var(--orb-border);
- transition: background-color var(--orb-dur) var(--orb-ease), width var(--orb-dur) var(--orb-ease), left var(--orb-dur) var(--orb-ease);
- }
-
- .ath-splitter:hover::after,
- .ath-resizing .ath-splitter:active::after {
- left: 1px;
- width: 3px;
- background: var(--orb-primary);
- }
-
- body.ath-resizing {
- cursor: col-resize;
- user-select: none;
- }
-
- body.ath-resizing iframe {
- pointer-events: none;
- }
-
- body.ath-no-sidebar .ath-sidebar,
- body.ath-no-sidebar [data-split="sidebar"],
- body.ath-no-preview .ath-preview,
- body.ath-no-preview [data-split="preview"] {
- display: none;
- }
-
- .ath-center {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- background: var(--ath-editor-bg);
- }
-
- .ath-tabs {
- display: flex;
- height: 38px;
- flex-shrink: 0;
- overflow-x: auto;
- overflow-y: hidden;
- scrollbar-width: none;
- background: var(--orb-bg);
- box-shadow: inset 0 -1px 0 var(--orb-border);
- }
-
- .ath-tabs::-webkit-scrollbar {
- display: none;
- }
-
- .ath-tabs:empty {
- display: none;
- }
-
- .ath-tab {
- position: relative;
- flex: none;
- display: flex;
- align-items: center;
- gap: 6px;
- max-width: 230px;
- padding: 0 6px 0 10px;
- border-right: 1px solid var(--orb-border);
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- cursor: pointer;
- user-select: none;
- transition:
- background-color var(--orb-dur) var(--orb-ease),
- color var(--orb-dur) var(--orb-ease),
- opacity var(--orb-dur) var(--orb-ease);
- }
-
- .ath-tab::before {
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- height: 2px;
- background: var(--orb-primary);
- transform: scaleX(0);
- transform-origin: center center;
- transition: transform var(--orb-dur-slow) var(--orb-ease-out);
- pointer-events: none;
- }
-
- .ath-tab:hover {
- background: var(--orb-surface-alt);
- color: var(--orb-text);
- }
-
- .ath-tab.is-active {
- background: var(--ath-editor-bg);
- color: var(--orb-text);
- }
-
- .ath-tab.is-active::before {
- transform: scaleX(1);
- }
-
- .ath-tab.is-entering {
- overflow: hidden;
- animation: ath-tab-in var(--orb-dur-slow) var(--orb-ease-out) both;
- }
-
- .ath-tab.is-leaving {
- overflow: hidden;
- pointer-events: none;
- animation: ath-tab-out var(--orb-dur) var(--orb-ease) forwards;
- }
-
- .ath-tab.is-dragging {
- opacity: 0.4;
- }
-
- .ath-tab-marker {
- position: fixed;
- left: 0;
- top: 0;
- width: 2px;
- margin-left: -1px;
- border-radius: 2px;
- background: var(--orb-primary);
- box-shadow: 0 0 0 1px var(--orb-primary-dim-strong), 0 0 8px var(--orb-primary);
- opacity: 0;
- pointer-events: none;
- z-index: 60;
- transition:
- opacity var(--orb-dur-fast) var(--orb-ease),
- transform 90ms var(--orb-ease-out);
- }
-
- .ath-tab-marker.is-visible {
- opacity: 1;
- }
-
- @keyframes ath-tab-in {
- from {
- opacity: 0;
- max-width: 0;
- padding-left: 0;
- padding-right: 0;
- }
-
- to {
- opacity: 1;
- max-width: 230px;
- padding-left: 10px;
- padding-right: 6px;
- }
- }
-
- @keyframes ath-tab-out {
- from {
- opacity: 1;
- width: var(--w);
- max-width: var(--w);
- }
-
- to {
- opacity: 0;
- width: 0;
- max-width: 0;
- padding-left: 0;
- padding-right: 0;
- border-right-width: 0;
- }
- }
-
- .ath-tab-name {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .ath-tab-close {
- width: 22px;
- height: 22px;
- flex-shrink: 0;
- display: grid;
- place-items: center;
- border: none;
- border-radius: var(--orb-radius-xs);
- background: transparent;
- color: var(--orb-text-muted);
- cursor: pointer;
- opacity: 0;
- }
-
- .ath-tab-close .ath-icon {
- width: 14px;
- height: 14px;
- }
-
- .ath-tab:hover .ath-tab-close,
- .ath-tab.is-active .ath-tab-close,
- .ath-tab.is-dirty .ath-tab-close,
- .ath-tab-close:focus-visible {
- opacity: 1;
- }
-
- .ath-tab-close:hover {
- background: var(--orb-surface-hover);
- color: var(--orb-text);
- }
-
- .ath-tab-dot {
- display: none;
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: currentColor;
- }
-
- .ath-tab.is-dirty .ath-tab-close:not(:hover) .ath-icon {
- display: none;
- }
-
- .ath-tab.is-dirty .ath-tab-close:not(:hover) .ath-tab-dot {
- display: block;
- }
-
- .ath-tab.is-dirty .ath-tab-close {
- color: var(--orb-text);
- }
-
- .ath-editor-area {
- position: relative;
- flex: 1;
- min-height: 0;
- }
-
- .ath-editor-host,
- .ath-image-view,
- .ath-welcome {
- position: absolute;
- inset: 0;
- display: none;
- }
-
- body[data-view="editor"] .ath-editor-host {
- display: block;
- }
-
- body[data-view="image"] .ath-image-view {
- display: grid;
- }
-
- body[data-view="welcome"] .ath-welcome {
- display: flex;
- }
-
- .ath-editor-host .cm-editor {
- height: 100%;
- }
-
- .ath-editor-host.has-minimap .cm-editor {
- width: calc(100% - 88px);
- }
-
- .ath-minimap {
- --ath-minimap-code: color-mix(in srgb, var(--orb-text-muted) 72%, transparent);
- --ath-minimap-selection: color-mix(in srgb, var(--orb-primary) 20%, transparent);
- --ath-minimap-cursor: var(--orb-primary);
- position: absolute;
- inset: 8px 8px 8px auto;
- width: 80px;
- overflow: hidden;
- border: 1px solid var(--orb-border);
- border-radius: 8px;
- background: linear-gradient(180deg, var(--orb-surface) 0%, var(--orb-surface-alt) 100%);
- box-shadow: 0 2px 8px color-mix(in srgb, var(--orb-text) 5%, transparent);
- cursor: pointer;
- touch-action: none;
- animation: ath-minimap-in var(--orb-dur-slow) var(--orb-ease-spring) both;
- transition:
- border-color var(--orb-dur) var(--orb-ease),
- box-shadow var(--orb-dur) var(--orb-ease),
- background-color var(--orb-dur) var(--orb-ease);
- }
-
- .ath-minimap:hover {
- border-color: var(--orb-border-strong);
- box-shadow: 0 4px 16px color-mix(in srgb, var(--orb-text) 9%, transparent);
- }
-
- .ath-minimap.is-dragging {
- cursor: grabbing;
- }
-
- .ath-minimap canvas {
- display: block;
- width: 100%;
- height: 100%;
- padding: 0;
- box-sizing: border-box;
- opacity: 0.76;
- pointer-events: none;
- transition: opacity var(--orb-dur) var(--orb-ease);
- }
-
- .ath-minimap:hover canvas {
- opacity: 1;
- }
-
- .ath-minimap-viewport {
- position: absolute;
- right: 4px;
- left: 4px;
- z-index: 1;
- box-sizing: border-box;
- border: 1px solid color-mix(in srgb, var(--orb-primary) 55%, transparent);
- border-radius: 5px;
- background: linear-gradient(110deg,
- color-mix(in srgb, var(--orb-primary) 13%, transparent),
- color-mix(in srgb, var(--orb-primary) 8%, transparent));
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orb-surface) 35%, transparent);
- pointer-events: none;
- transition:
- border-color var(--orb-dur) var(--orb-ease),
- background-color var(--orb-dur) var(--orb-ease);
- }
-
- .ath-minimap-markers {
- position: absolute;
- inset: 0;
- z-index: 2;
- overflow: hidden;
- pointer-events: none;
- }
-
- .ath-minimap-selection {
- position: absolute;
- right: 7px;
- left: 7px;
- border-left: 2px solid var(--orb-primary);
- border-radius: 2px;
- background: var(--ath-minimap-selection);
- }
-
- .ath-minimap-cursor {
- position: absolute;
- right: 6px;
- left: 6px;
- height: 1px;
- border-radius: 2px;
- background: var(--ath-minimap-cursor);
- box-shadow: 0 0 5px color-mix(in srgb, var(--orb-primary) 70%, transparent);
- }
-
- .ath-minimap:hover .ath-minimap-viewport {
- border-color: color-mix(in srgb, var(--orb-primary) 80%, transparent);
- background: color-mix(in srgb, var(--orb-primary) 17%, transparent);
- }
-
- .ath-minimap.is-dragging .ath-minimap-viewport {
- transition: none;
- }
-
- @keyframes ath-minimap-in {
- from {
- opacity: 0;
- transform: translateX(8px);
- }
-
- to {
- opacity: 1;
- transform: none;
- }
- }
-
- .ath-minimap:focus-visible {
- outline: 2px solid var(--orb-primary);
- outline-offset: -2px;
- }
-
- @media (max-width: 720px) {
- .ath-editor-host.has-minimap .cm-editor {
- width: 100%;
- }
-
- .ath-minimap {
- display: none;
- }
- }
-
- @media (prefers-reduced-motion: reduce) {
- .ath-minimap,
- .ath-minimap canvas,
- .ath-minimap-viewport {
- animation: none !important;
- transition: none !important;
- }
- }
-
- .ath-image-view {
- place-items: center;
- padding: var(--orb-space-8);
- overflow: auto;
- background-color: var(--orb-surface-alt);
- background-image: conic-gradient(var(--orb-surface-hover) 25%, transparent 0 50%, var(--orb-surface-hover) 0 75%, transparent 0);
- background-size: 20px 20px;
- }
-
- .ath-image-view img {
- max-width: 100%;
- max-height: 100%;
- object-fit: contain;
- box-shadow: var(--orb-shadow-md);
- }
-
- .ath-welcome {
- overflow: auto;
- align-items: center;
- justify-content: center;
- padding: var(--orb-space-8) var(--orb-space-4);
- background:
- radial-gradient(600px 300px at 50% 0%, var(--orb-primary-dim), transparent 70%),
- var(--ath-editor-bg);
- }
-
- .ath-welcome-inner {
- max-width: 560px;
- width: 100%;
- text-align: center;
- margin: auto;
- }
-
- .ath-welcome-logo {
- display: block;
- width: 104px;
- height: 104px;
- margin: 0 auto var(--orb-space-4);
- object-fit: contain;
- filter: drop-shadow(0 10px 24px rgba(3, 3, 26, 0.35));
- }
-
- .ath-welcome .orb-lead {
- margin: var(--orb-space-3) auto 0;
- }
-
- .ath-welcome-actions {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- gap: var(--orb-space-3);
- margin: var(--orb-space-6) 0 var(--orb-space-3);
- }
-
- .ath-recent {
- margin-bottom: var(--orb-space-2);
- }
-
- .ath-limited {
- text-align: left;
- margin-top: var(--orb-space-5);
- }
-
- .ath-shortcuts {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: var(--orb-space-3) var(--orb-space-6);
- margin-top: var(--orb-space-8);
- padding-top: var(--orb-space-6);
- border-top: 1px solid var(--orb-border);
- text-align: left;
- }
-
- .ath-shortcuts>div {
- display: flex;
- align-items: center;
- gap: 4px;
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- }
-
- .ath-shortcuts>div>span:last-child {
- margin-left: 6px;
- }
-
- .ath-preview {
- width: var(--ath-preview-w, 42%);
- flex-shrink: 0;
- min-width: 0;
- display: flex;
- flex-direction: column;
- background: var(--orb-bg);
- }
-
- .ath-preview-status {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- padding: 2px 8px;
- border: none;
- border-radius: var(--orb-radius-full);
- background: var(--orb-danger-dim);
- color: var(--orb-danger);
- font-size: 0.71875rem;
- font-weight: 700;
- cursor: pointer;
- white-space: nowrap;
- }
-
- .ath-preview-status .ath-icon {
- width: 13px;
- height: 13px;
- }
-
- .ath-preview-body {
- position: relative;
- flex: 1;
- min-height: 0;
- margin: 0 8px 8px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-md);
- overflow: hidden;
- background: #ffffff;
- }
-
- .ath-pane-actions .orb-dropdown {
- display: flex;
- }
-
- .ath-icon-btn.is-active {
- color: var(--orb-primary-text);
- background: var(--orb-primary-dim);
- }
-
- .ath-device-menu {
- width: max-content;
- min-width: 250px;
- }
-
- .ath-device-list {
- max-height: min(60vh, 400px);
- overflow-y: auto;
- overscroll-behavior: contain;
- }
-
- .ath-device-item {
- white-space: nowrap;
- }
-
- .ath-device-item:disabled {
- opacity: 0.4;
- cursor: default;
- }
-
- .ath-device-menu .ath-accent-label {
- padding: 6px 10px 0;
- margin-bottom: 6px;
- }
-
- .ath-device-menu .ath-accent-label:not(:first-child) {
- margin-top: 8px;
- }
-
- .ath-device-menu .orb-dropdown-item {
- font-size: 0.8125rem;
- padding: 7px 10px;
- }
-
- .ath-device-item.is-current {
- color: var(--orb-primary-text);
- font-weight: 600;
- }
-
- .ath-device-size {
- margin-left: auto;
- font-size: 0.6875rem;
- font-weight: 400;
- color: var(--orb-text-subtle);
- font-variant-numeric: tabular-nums;
- white-space: nowrap;
- }
-
- .ath-device-ph {
- width: 16px;
- height: 16px;
- flex-shrink: 0;
- }
-
- .ath-preview-body.is-device {
- background: var(--orb-surface);
- }
-
- .ath-preview-body.is-device iframe {
- position: absolute;
- left: 50%;
- top: 50%;
- width: auto;
- height: auto;
- transform: translate(-50%, -50%) scale(var(--ath-device-scale, 1));
- transform-origin: center;
- border-radius: 14px;
- box-shadow: 0 0 0 1px var(--orb-border), var(--orb-shadow-lg);
- }
-
- .ath-device-label {
- position: absolute;
- left: 50%;
- bottom: 4px;
- z-index: 1;
- transform: translateX(-50%);
- padding: 1px 8px;
- border-radius: var(--orb-radius-full);
- font-size: 0.6875rem;
- color: var(--orb-text-subtle);
- background: var(--orb-surface);
- white-space: nowrap;
- pointer-events: none;
- }
-
- .ath-preview-body iframe {
- display: block;
- width: 100%;
- height: 100%;
- border: 0;
- background: #ffffff;
- }
-
- .ath-preview-empty {
- position: absolute;
- inset: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: var(--orb-space-3);
- padding: var(--orb-space-6);
- text-align: center;
- font-size: 0.8125rem;
- color: var(--orb-text-subtle);
- background: var(--orb-surface);
- }
-
- .ath-preview-empty .ath-icon {
- width: 32px;
- height: 32px;
- }
-
- .ath-console {
- flex-shrink: 0;
- position: relative;
- display: flex;
- flex-direction: column;
- margin: 0 8px 8px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-md);
- background: var(--orb-surface);
- overflow: hidden;
- }
-
- .ath-console[hidden] {
- display: none;
- }
-
- .ath-console-grip {
- display: none;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- height: 6px;
- z-index: 2;
- cursor: ns-resize;
- touch-action: none;
- }
-
- .ath-console.is-open .ath-console-grip {
- display: block;
- }
-
- .ath-console-head {
- display: flex;
- align-items: center;
- gap: 6px;
- min-height: 32px;
- padding: 0 4px 0 2px;
- }
-
- .ath-console-toggle {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- padding: 5px 8px;
- border: 0;
- border-radius: var(--orb-radius-sm);
- background: transparent;
- color: var(--orb-text);
- font: inherit;
- font-size: 0.78125rem;
- font-weight: 600;
- cursor: pointer;
- }
-
- .ath-console-toggle:hover {
- background: var(--orb-surface-hover);
- }
-
- .ath-console-toggle .ath-icon {
- width: 14px;
- height: 14px;
- transition: transform 0.15s;
- }
-
- .ath-console.is-open .ath-console-toggle .ath-icon {
- transform: rotate(90deg);
- }
-
- .ath-console-badge {
- padding: 1px 7px;
- border-radius: var(--orb-radius-full);
- font-size: 0.6875rem;
- font-weight: 700;
- }
-
- .ath-console-badge.is-error {
- background: var(--orb-danger-dim);
- color: var(--orb-danger);
- }
-
- .ath-console-badge.is-warn {
- background: var(--orb-warning-dim);
- color: var(--orb-warning);
- }
-
- .ath-console-badge[hidden] {
- display: none;
- }
-
- .ath-console-tools {
- display: flex;
- align-items: center;
- gap: 2px;
- margin-left: auto;
- min-width: 0;
- opacity: 0;
- visibility: hidden;
- pointer-events: none;
- }
-
- .ath-console.is-open .ath-console-tools {
- opacity: 1;
- visibility: visible;
- pointer-events: auto;
- }
-
- .ath-console-filter {
- padding: 3px 8px;
- border: 0;
- border-radius: var(--orb-radius-full);
- background: transparent;
- color: var(--orb-text-muted);
- font: inherit;
- font-size: 0.71875rem;
- font-weight: 600;
- white-space: nowrap;
- cursor: pointer;
- }
-
- .ath-console-filter:hover {
- background: var(--orb-surface-hover);
- }
-
- .ath-console-filter.is-active {
- background: var(--orb-primary-dim);
- color: var(--orb-primary-text);
- }
-
- .ath-console-body {
- display: block;
- height: 0;
- max-height: 60vh;
- overflow: hidden;
- border-top: 0 solid var(--orb-border);
- opacity: 0;
- visibility: hidden;
- font-family: var(--ath-font-code);
- font-size: 0.75rem;
- }
-
- .ath-console.is-open .ath-console-body {
- height: var(--ath-console-h, 220px);
- overflow: auto;
- border-top-width: 1px;
- opacity: 1;
- visibility: visible;
- }
-
- .ath-console-empty {
- padding: 12px;
- color: var(--orb-text-subtle);
- font-family: inherit;
- }
-
- .ath-console-row {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- padding: 3px 10px;
- border-bottom: 1px solid color-mix(in srgb, var(--orb-border) 55%, transparent);
- line-height: 1.55;
- }
-
- .ath-console-row.is-error {
- background: var(--orb-danger-dim);
- color: var(--orb-danger);
- }
-
- .ath-console-row.is-warn {
- background: var(--orb-warning-dim);
- color: var(--orb-warning);
- }
-
- .ath-console-row.is-input {
- color: var(--orb-text-muted);
- }
-
- .ath-console-row.is-input .ath-console-lead::before {
- content: "\203A";
- }
-
- .ath-console-row.is-result .ath-console-lead::before {
- content: "\2039";
- color: var(--orb-text-subtle);
- }
-
- .ath-console-lead {
- flex: 0 0 14px;
- display: inline-flex;
- justify-content: center;
- }
-
- .ath-console-lead .ath-icon {
- width: 13px;
- height: 13px;
- margin-top: 3px;
- }
-
- .ath-console-tag {
- padding: 0 6px;
- border-radius: var(--orb-radius-sm);
- background: var(--orb-info-dim);
- color: var(--orb-info);
- font-size: 0.65625rem;
- font-weight: 700;
- line-height: 1.7;
- }
-
- .ath-console-text {
- flex: 1;
- min-width: 0;
- margin: 0;
- font: inherit;
- white-space: pre-wrap;
- word-break: break-word;
- }
-
- .ath-console-repeat {
- padding: 0 6px;
- border-radius: var(--orb-radius-full);
- background: var(--orb-surface-alt);
- color: var(--orb-text-muted);
- font-size: 0.6875rem;
- font-weight: 700;
- }
-
- .ath-console-repeat[hidden] {
- display: none;
- }
-
- .ath-console-loc {
- flex-shrink: 0;
- padding: 0;
- border: 0;
- background: transparent;
- color: var(--orb-text-subtle);
- font: inherit;
- font-size: 0.6875rem;
- cursor: pointer;
- }
-
- .ath-console-loc:not(.is-plain):hover {
- color: var(--orb-primary-text);
- text-decoration: underline;
- }
-
- .ath-console-loc.is-plain {
- cursor: default;
- }
-
- .ath-console-input {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 0 10px;
- max-height: 0;
- overflow: hidden;
- border-top: 0 solid var(--orb-border);
- opacity: 0;
- visibility: hidden;
- }
-
- .ath-console.is-open .ath-console-input {
- max-height: 48px;
- border-top-width: 1px;
- opacity: 1;
- visibility: visible;
- }
-
- .ath-console.is-armed .ath-console-body,
- .ath-console.is-armed .ath-console-input,
- .ath-console.is-armed .ath-console-tools {
- transition:
- height var(--orb-dur-slow) var(--orb-ease-out),
- max-height var(--orb-dur-slow) var(--orb-ease-out),
- border-top-width var(--orb-dur-slow) var(--orb-ease-out),
- opacity var(--orb-dur) var(--orb-ease),
- visibility 0s linear var(--orb-dur-slow);
- }
-
- .ath-console.is-armed.is-open .ath-console-body,
- .ath-console.is-armed.is-open .ath-console-input,
- .ath-console.is-armed.is-open .ath-console-tools {
- transition:
- height var(--orb-dur-slow) var(--orb-ease-out),
- max-height var(--orb-dur-slow) var(--orb-ease-out),
- border-top-width var(--orb-dur-slow) var(--orb-ease-out),
- opacity var(--orb-dur) var(--orb-ease) 60ms,
- visibility 0s;
- }
-
- .ath-console.is-resizing .ath-console-body {
- transition: none !important;
- }
-
- @media (prefers-reduced-motion: reduce) {
- .ath-console .ath-console-body,
- .ath-console .ath-console-input,
- .ath-console .ath-console-tools {
- transition: none !important;
- }
- }
-
- .ath-console-prompt {
- color: var(--orb-primary-text);
- font-family: var(--ath-font-code);
- font-weight: 700;
- }
-
- .ath-console-input input {
- flex: 1;
- min-width: 0;
- padding: 7px 0;
- border: 0;
- outline: 0;
- background: transparent;
- color: var(--orb-text);
- font-family: var(--ath-font-code);
- font-size: 0.75rem;
- }
-
- .ath-statusbar {
- display: flex;
- align-items: center;
- padding: 0 6px;
- font-size: 0.75rem;
- color: var(--orb-text-muted);
- background: var(--orb-bg);
- border-top: 1px solid var(--orb-border);
- white-space: nowrap;
- overflow: hidden;
- }
-
- .ath-status-item {
- padding: 0 8px;
- }
-
- .ath-status-item:empty {
- display: none;
- }
-
- .ath-status-spacer {
- flex: 1;
- }
-
- .ath-status-mode {
- padding: 1px 8px;
- border-radius: var(--orb-radius-xs);
- background: var(--orb-primary-dim);
- color: var(--orb-primary-text);
- font-weight: 600;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .ath-status-mode.is-limited {
- background: var(--orb-warning-dim);
- color: color-mix(in srgb, var(--orb-warning) 70%, var(--orb-text));
- }
-
- .ath-status-brand {
- color: var(--orb-text-subtle);
- }
-
- .ath-dialog .orb-modal-close .ath-icon {
- width: 18px;
- height: 18px;
- }
-
- .ath-dialog-text {
- font-size: 0.875rem;
- line-height: 1.6;
- }
-
- .ath-context-menu {
- position: fixed;
- z-index: 2000;
- min-width: 220px;
- width: max-content;
- }
-
- .ath-context-menu .orb-dropdown-item {
- font-size: 0.8125rem;
- padding: 7px 10px;
- }
-
- .ath-error-list {
- list-style: none;
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
-
- .ath-error-list li {
- padding: 8px 10px;
- border-radius: var(--orb-radius-sm);
- background: var(--orb-danger-dim);
- color: var(--orb-danger);
- font-size: 0.78125rem;
- word-break: break-word;
- }
-
- .ath-keys-table {
- width: 100%;
- font-size: 0.8125rem;
- }
-
- .ath-keys-table td {
- padding: 7px 10px;
- vertical-align: middle;
- }
-
- .ath-keys-table td:first-child {
- white-space: nowrap;
- width: 1%;
- }
-
- .ath-combo {
- display: inline-flex;
- gap: 3px;
- }
-
- .ath-about {
- text-align: center;
- }
-
- .ath-about p {
- margin-top: var(--orb-space-2);
- font-size: 0.875rem;
- }
-
- .ath-about-logo {
- width: 72px;
- height: 72px;
- margin: 0 auto var(--orb-space-3);
- display: block;
- object-fit: contain;
- }
-
- .ath-lang-menu {
- min-width: 250px;
- }
-
- .ath-lang-menu .ath-accent-label {
- padding: 6px 10px 0;
- margin-bottom: 6px;
- }
-
- .ath-lang-menu .orb-dropdown-item {
- font-size: 0.8125rem;
- padding: 7px 10px;
- }
-
- .ath-lang-item.is-current {
- color: var(--orb-primary-text);
- font-weight: 600;
- }
-
- .ath-lang-item.is-current svg {
- color: var(--orb-primary-text);
- }
-
- .ath-lang-code {
- margin-left: auto;
- font-size: 0.6875rem;
- color: var(--orb-text-subtle);
- text-transform: uppercase;
- letter-spacing: 0.04em;
- }
-
- .ath-shell {
- transition: opacity 140ms var(--orb-ease);
- }
-
- body:not(.is-ready) .ath-shell {
- opacity: 0;
- }
-
- body:not(.is-ready) * {
- transition: none !important;
- animation: none !important;
- }
-
- .ath-drop-hint {
- position: fixed;
- inset: 12px;
- z-index: 3000;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: var(--orb-space-3);
- border: 2px dashed var(--orb-primary);
- border-radius: var(--orb-radius-xl);
- background: color-mix(in srgb, var(--orb-bg) 82%, transparent);
- backdrop-filter: blur(4px);
- -webkit-backdrop-filter: blur(4px);
- color: var(--orb-primary-text);
- font-size: 1rem;
- font-weight: 600;
- opacity: 0;
- pointer-events: none;
- transition: opacity var(--orb-dur) var(--orb-ease);
- }
-
- .ath-drop-hint.is-visible {
- opacity: 1;
- }
-
- .ath-drop-hint .ath-icon {
- width: 24px;
- height: 24px;
- }
-
- @media (max-width: 960px) {
- .ath-preview {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- z-index: 20;
- width: min(100%, 520px);
- border-left: 1px solid var(--orb-border);
- box-shadow: var(--orb-shadow-lg);
- }
-
- [data-split="preview"] {
- display: none;
- }
- }
-
- @media (max-width: 720px) {
- .ath-sidebar {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- z-index: 21;
- width: min(85%, 300px);
- border-right: 1px solid var(--orb-border);
- box-shadow: var(--orb-shadow-lg);
- }
-
- [data-split="sidebar"] {
- display: none;
- }
-
- .ath-brand-name {
- display: none;
- }
-
- .ath-topbar {
- gap: var(--orb-space-2);
- }
-
- .ath-shortcuts {
- grid-template-columns: 1fr;
- }
-
- #st-indent,
- .ath-status-brand {
- display: none;
- }
- }
-
- .ath-settings {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-6);
- }
-
- .ath-set-section h3 {
- font-size: 0.6875rem;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- color: var(--orb-text-subtle);
- margin-bottom: var(--orb-space-2);
- }
-
- .ath-set-row {
- display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
- align-items: center;
- gap: var(--orb-space-4);
- padding: 10px 0;
- border-bottom: 1px solid var(--orb-border);
- }
-
- .ath-set-row:last-child {
- border-bottom: none;
- }
-
- .ath-set-label {
- display: flex;
- flex-direction: column;
- gap: 2px;
- font-size: 0.875rem;
- min-width: 0;
- }
-
- .ath-set-label small {
- font-size: 0.75rem;
- color: var(--orb-text-subtle);
- line-height: 1.45;
- }
-
- .ath-set-control {
- display: flex;
- justify-content: flex-end;
- min-width: 0;
- }
-
- .ath-set-control .orb-select {
- min-height: 36px;
- padding-top: 6px;
- padding-bottom: 6px;
- }
-
- .ath-set-accents {
- grid-template-columns: repeat(8, 22px);
- gap: 8px;
- }
-
- .ath-set-accents .orb-color-dot {
- width: 22px;
- height: 22px;
- }
-
- .ath-range {
- display: flex;
- align-items: center;
- gap: var(--orb-space-3);
- width: 100%;
- }
-
- .ath-range-value {
- min-width: 48px;
- text-align: right;
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- font-variant-numeric: tabular-nums;
- }
-
- .ath-set-hint {
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- line-height: 1.5;
- margin-bottom: var(--orb-space-3);
- }
-
- .ath-set-hint code {
- font-family: var(--orb-font-mono);
- font-size: 0.75rem;
- }
-
- .ath-font-list {
- display: flex;
- flex-direction: column;
- gap: 6px;
- margin-bottom: var(--orb-space-3);
- }
-
- .ath-font-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: var(--orb-space-3);
- padding: 6px 6px 6px 12px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- font-size: 0.9375rem;
- }
-
- .ath-set-empty {
- font-size: 0.8125rem;
- color: var(--orb-text-subtle);
- }
-
- @media (max-width: 560px) {
- .ath-set-row {
- grid-template-columns: 1fr;
- gap: var(--orb-space-2);
- }
-
- .ath-set-control {
- justify-content: flex-start;
- }
- }
-
- .ath-palette-overlay {
- position: fixed;
- inset: 0;
- z-index: 1500;
- display: flex;
- justify-content: center;
- align-items: flex-start;
- padding-top: 72px;
- background: rgba(0, 0, 0, 0.18);
- }
-
- .ath-palette {
- width: min(640px, calc(100vw - 32px));
- max-height: min(480px, 70vh);
- display: flex;
- flex-direction: column;
- overflow: hidden;
- background: var(--orb-surface);
- border: 1px solid var(--orb-border-strong);
- border-radius: var(--orb-radius-md);
- box-shadow: var(--orb-shadow-lg);
- animation: orb-pop var(--orb-dur) var(--orb-ease-out);
- }
-
- .ath-palette-input {
- width: 100%;
- border: 0;
- border-bottom: 1px solid var(--orb-border);
- padding: 14px 16px;
- background: transparent;
- color: var(--orb-text);
- font-size: 0.9375rem;
- outline: none;
- }
-
- .ath-palette[data-mode="cmd"] .ath-palette-input,
- .ath-palette[data-mode="line"] .ath-palette-input {
- font-family: var(--orb-font-mono);
- }
-
- .ath-palette-list {
- overflow-y: auto;
- padding: 6px;
- }
-
- .ath-palette-item {
- display: flex;
- align-items: center;
- gap: 10px;
- min-height: 34px;
- padding: 6px 10px;
- border-radius: var(--orb-radius-sm);
- font-size: 0.8125rem;
- cursor: pointer;
- }
-
- .ath-palette-item.is-active {
- background: var(--orb-primary-dim-strong);
- }
-
- .ath-palette-item.is-disabled {
- color: var(--orb-text-subtle);
- cursor: default;
- }
-
- .ath-palette-item .ath-icon {
- color: var(--orb-text-muted);
- }
-
- .ath-palette-noicon {
- width: 20px;
- flex-shrink: 0;
- }
-
- .ath-palette-label {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .ath-palette-label mark {
- background: none;
- color: var(--orb-primary-text);
- font-weight: 700;
- }
-
- .ath-palette-detail {
- margin-left: auto;
- padding-left: 12px;
- color: var(--orb-text-subtle);
- font-size: 0.75rem;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 55%;
- font-family: var(--orb-font-mono);
- }
-
- .ath-status-problems {
- display: inline-flex;
- align-items: center;
- gap: 10px;
- height: 100%;
- border: 0;
- background: none;
- color: inherit;
- font: inherit;
- cursor: pointer;
- }
-
- .ath-status-problems:hover {
- color: var(--orb-text);
- background: var(--orb-surface-hover);
- }
-
- .ath-status-problems span {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- }
-
- .ath-status-problems .ath-icon {
- width: 12px;
- height: 12px;
- }
-
- .ath-status-problems.has-errors .ath-st-err {
- color: var(--orb-danger);
- font-weight: 700;
- }
-
- body[data-view="welcome"] .ath-status-problems,
- body[data-view="image"] .ath-status-problems {
- display: none;
- }
-
- .ath-snippet-preview {
- margin: 0;
- max-width: 460px;
- max-height: 260px;
- overflow: auto;
- font-family: var(--ath-font-code);
- font-size: 12px;
- line-height: 1.5;
- white-space: pre;
- color: var(--orb-text-muted);
- }
-
- .ath-pane-title[data-badge]::after {
- content: attr(data-badge);
- margin-left: 8px;
- padding: 1px 6px;
- border-radius: var(--orb-radius-xs);
- background: var(--orb-primary-dim);
- color: var(--orb-primary-text);
- font-size: 0.625rem;
- letter-spacing: 0.04em;
- }
-
- .ath-preview-loading {
- position: absolute;
- inset: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: var(--orb-space-3);
- background: color-mix(in srgb, var(--orb-surface) 88%, transparent);
- color: var(--orb-text-muted);
- font-size: 0.8125rem;
- z-index: 2;
- }
-
- .ath-spinner {
- width: 26px;
- height: 26px;
- border-radius: 50%;
- border: 3px solid var(--orb-primary-dim-strong);
- border-top-color: var(--orb-primary);
- animation: orb-spin 0.8s linear infinite;
- }
-
- .ath-search {
- flex: 0 0 auto;
- display: flex;
- flex-direction: column;
- position: relative;
- min-height: 0;
- overflow: hidden;
- height: 35px;
- border-top: 1px solid var(--orb-border);
- background: var(--orb-bg);
- transition: height var(--orb-dur-slow) var(--orb-ease-out);
- }
-
- .ath-search.is-open {
- height: var(--ath-search-h, 320px);
- max-height: 80%;
- }
-
- body.ath-resizing .ath-search {
- transition: none;
- }
-
- .ath-search-grip {
- display: none;
- position: absolute;
- left: 0;
- right: 0;
- top: -3px;
- height: 6px;
- cursor: row-resize;
- z-index: 2;
- }
-
- .ath-search.is-open .ath-search-grip {
- display: block;
- }
-
- .ath-search-head {
- display: flex;
- align-items: center;
- gap: var(--orb-space-2);
- height: 34px;
- flex-shrink: 0;
- padding: 0 6px;
- }
-
- .ath-search-toggle {
- display: flex;
- align-items: center;
- gap: 6px;
- flex: 1;
- min-width: 0;
- height: 100%;
- padding: 0 8px;
- border: none;
- background: transparent;
- color: inherit;
- text-align: left;
- cursor: pointer;
- }
-
- .ath-search-chev {
- display: grid;
- place-items: center;
- color: var(--orb-text-muted);
- transition: transform var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-search-chev .ath-icon,
- .ath-sr-chev .ath-icon {
- width: 13px;
- height: 13px;
- }
-
- .ath-search.is-open .ath-search-chev {
- transform: rotate(90deg);
- }
-
- .ath-search-count,
- .ath-sr-num {
- margin-left: auto;
- flex-shrink: 0;
- min-width: 18px;
- padding: 0 6px;
- border-radius: 999px;
- background: var(--orb-primary-dim);
- color: var(--orb-primary-text);
- font-size: 0.6875rem;
- font-weight: 600;
- line-height: 18px;
- text-align: center;
- }
-
- .ath-search-count:empty {
- display: none;
- }
-
- .ath-search-body {
- display: flex;
- flex-direction: column;
- flex: 1;
- min-height: 0;
- opacity: 0;
- visibility: hidden;
- transform: translateY(-4px);
- transition: opacity var(--orb-dur) var(--orb-ease), transform var(--orb-dur) var(--orb-ease-out), visibility 0s linear var(--orb-dur);
- }
-
- .ath-search.is-open .ath-search-body {
- opacity: 1;
- visibility: visible;
- transform: none;
- transition: opacity var(--orb-dur-slow) var(--orb-ease) 60ms, transform var(--orb-dur-slow) var(--orb-ease-out) 60ms, visibility 0s;
- }
-
- .ath-search-form {
- display: flex;
- flex-direction: column;
- gap: 6px;
- flex-shrink: 0;
- padding: 2px 10px 8px;
- }
-
- .ath-search-row {
- display: flex;
- align-items: center;
- gap: 4px;
- }
-
- .ath-search-input {
- flex: 1;
- min-width: 0;
- height: 28px;
- padding: 0 8px;
- font-size: 0.8125rem;
- }
-
- .ath-search-multiline {
- height: auto;
- min-height: 28px;
- max-height: 88px;
- padding: 5px 8px;
- line-height: 1.35;
- resize: none;
- overflow-y: auto;
- white-space: pre-wrap;
- }
-
- #search-query,
- #search-replace {
- align-self: flex-start;
- }
-
- .ath-search-opt {
- flex-shrink: 0;
- width: 26px;
- height: 26px;
- border: 1px solid transparent;
- border-radius: var(--orb-radius-xs);
- background: transparent;
- color: var(--orb-text-muted);
- font: 600 0.6875rem var(--ath-font-code);
- cursor: pointer;
- }
-
- .ath-search-opt:hover {
- background: var(--orb-surface-hover);
- color: var(--orb-text);
- }
-
- .ath-search-opt[aria-pressed="true"],
- #search-replace-toggle[aria-pressed="true"] {
- background: var(--orb-primary-dim-strong);
- color: var(--orb-primary-text);
- border-color: var(--orb-primary-border);
- }
-
- .ath-search-status {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-shrink: 0;
- min-height: 22px;
- padding: 0 12px 4px;
- font-size: 0.75rem;
- color: var(--orb-text-muted);
- }
-
- .ath-search-stop {
- margin-left: auto;
- border: none;
- background: transparent;
- color: var(--orb-primary-text);
- font-size: 0.75rem;
- cursor: pointer;
- }
-
- .ath-search-results {
- flex: 1;
- min-height: 0;
- overflow: auto;
- overflow-anchor: none;
- padding-bottom: 12px;
- font-size: 0.8125rem;
- }
-
- .ath-cm-search-panel {
- display: flex;
- flex-direction: column;
- gap: 6px;
- padding: 8px 10px;
- font-family: var(--orb-font-sans);
- font-size: 0.8125rem;
- }
-
- .ath-cm-search-row,
- .ath-cm-search-replace {
- display: flex;
- align-items: flex-start;
- gap: 6px;
- }
-
- .ath-cm-search-replace[hidden] {
- display: none;
- }
-
- .ath-cm-search-field {
- flex: 1;
- min-width: 100px;
- min-height: 30px;
- max-height: 84px;
- padding: 5px 8px;
- resize: none;
- overflow-y: auto;
- white-space: pre-wrap;
- line-height: 1.35;
- font-size: 0.8125rem;
- }
-
- .ath-cm-search-controls {
- display: flex;
- flex-wrap: wrap;
- gap: 3px;
- }
-
- .ath-cm-search-button {
- min-width: 28px;
- min-height: 28px;
- padding: 2px 7px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-xs);
- background: var(--orb-surface);
- color: var(--orb-text);
- font: inherit;
- cursor: pointer;
- }
-
- .ath-cm-search-button:hover {
- background: var(--orb-surface-hover);
- }
-
- .ath-cm-search-option {
- font-family: var(--ath-font-code);
- }
-
- .ath-cm-search-option[aria-pressed="true"] {
- border-color: var(--orb-primary-border);
- background: var(--orb-primary-dim-strong);
- color: var(--orb-primary-text);
- }
-
- .ath-sr-file {
- display: flex;
- align-items: center;
- gap: 5px;
- height: 26px;
- padding: 0 8px;
- cursor: pointer;
- user-select: none;
- outline: none;
- }
-
- .ath-sr-file:hover,
- .ath-sr-match:hover {
- background: var(--orb-surface-hover);
- }
-
- .ath-sr-file:focus-visible,
- .ath-sr-match:focus-visible {
- box-shadow: inset 0 0 0 1px var(--orb-primary);
- }
-
- .ath-sr-chev {
- display: grid;
- place-items: center;
- color: var(--orb-text-muted);
- transition: transform var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-sr-group:not(.is-collapsed) .ath-sr-chev {
- transform: rotate(90deg);
- }
-
- .ath-sr-name {
- font-weight: 600;
- white-space: nowrap;
- }
-
- .ath-sr-dir {
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- color: var(--orb-text-subtle);
- font-size: 0.75rem;
- }
-
- .ath-sr-group {
- display: grid;
- grid-template-rows: auto 1fr;
- transition: grid-template-rows var(--orb-dur) var(--orb-ease-out);
- }
-
- .ath-sr-list {
- min-height: 0;
- overflow: hidden;
- transition: opacity var(--orb-dur) var(--orb-ease), visibility 0s;
- }
-
- .ath-sr-group.is-collapsed {
- grid-template-rows: auto 0fr;
- }
-
- .ath-sr-group.is-collapsed .ath-sr-list {
- opacity: 0;
- visibility: hidden;
- transition: opacity var(--orb-dur-fast) var(--orb-ease), visibility 0s linear var(--orb-dur);
- }
-
- .ath-sr-match {
- display: flex;
- align-items: center;
- gap: 8px;
- min-height: 22px;
- padding: 1px 8px 1px 26px;
- font-family: var(--ath-font-code);
- font-size: 0.75rem;
- cursor: pointer;
- outline: none;
- }
-
- .ath-sr-line {
- flex: 0 0 auto;
- min-width: 2.2em;
- text-align: right;
- color: var(--orb-text-subtle);
- }
-
- .ath-sr-text {
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: pre;
- }
-
- .ath-sr-hit {
- border-radius: 2px;
- background: var(--orb-primary-dim-strong);
- color: inherit;
- }
-
- .ath-sr-ins {
- display: none;
- border-radius: 2px;
- background: color-mix(in srgb, var(--orb-success) 22%, transparent);
- text-decoration: none;
- }
-
- .ath-search-results.is-replace .ath-sr-ins {
- display: inline;
- }
-
- .ath-search-results.is-replace .ath-sr-hit {
- background: color-mix(in srgb, var(--orb-danger) 18%, transparent);
- text-decoration: line-through;
- }
-
- .ath-sr-replace {
- display: none;
- flex-shrink: 0;
- width: 22px;
- height: 22px;
- }
-
- .ath-search-results.is-replace .ath-sr-file:hover .ath-sr-replace,
- .ath-search-results.is-replace .ath-sr-file:focus-within .ath-sr-replace,
- .ath-search-results.is-replace .ath-sr-match:hover .ath-sr-replace,
- .ath-search-results.is-replace .ath-sr-match:focus-within .ath-sr-replace {
- display: grid;
- }
-
- .ath-search-more {
- padding: 8px 10px;
- }
-
- @media (prefers-reduced-motion: reduce) {
-
- .ath-tab,
- .ath-tab::before,
- .ath-tab-marker {
- transition: none !important;
- }
-
- .ath-tab.is-entering,
- .ath-tab.is-leaving {
- animation: none !important;
- }
-
- .ath-tab.is-leaving {
- display: none;
- }
-
- .ath-tree-row,
- .ath-tree-row::before,
- .ath-tree-chevron,
- .ath-tree-chevron .ath-icon,
- .ath-ficon {
- transition: none !important;
- }
-
- .ath-tree-row.is-entering,
- .ath-ficon.is-toggled {
- animation: none !important;
- }
-
- .ath-search,
- .ath-search-body,
- .ath-search-chev,
- .ath-sr-group,
- .ath-sr-list,
- .ath-sr-chev {
- transition: none !important;
- }
- }
-
- .ath-swatch {
- display: inline-block;
- width: 0.95em;
- height: 0.95em;
- margin: 0 0.4em 0 0.1em;
- vertical-align: -0.12em;
- border-radius: 3px;
- box-shadow: 0 0 0 1px var(--orb-border-strong);
- background-color: var(--orb-bg);
- background-image:
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%);
- background-size: 8px 8px;
- background-position: 0 0, 4px 4px;
- cursor: pointer;
- user-select: none;
- overflow: hidden;
- transition: transform var(--orb-dur) var(--orb-ease), box-shadow var(--orb-dur) var(--orb-ease);
- }
-
- .ath-swatch:hover {
- transform: scale(1.18);
- box-shadow: 0 0 0 1px var(--orb-primary);
- }
-
- .ath-swatch-fill {
- display: block;
- width: 100%;
- height: 100%;
- border-radius: inherit;
- }
-
- .ath-cp-overlay {
- z-index: 1200;
- }
-
- .ath-cp-modal {
- max-width: 460px;
- }
-
- .ath-cp-body {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-4);
- }
-
- .ath-cp-preview {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-3);
- padding: var(--orb-space-4);
- border-radius: var(--orb-radius-md);
- border: 1px solid var(--orb-border);
- background:
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
- var(--orb-surface);
- background-size: 12px 12px;
- background-position: 0 0, 6px 6px;
- }
-
- .ath-cp-preview::before {
- content: "";
- display: block;
- height: 44px;
- border-radius: var(--orb-radius-sm);
- border: 1px solid var(--orb-border-strong);
- background: var(--ath-cp-color, transparent);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
- order: -1;
- }
-
- .ath-cp-picker-row {
- display: flex;
- gap: var(--orb-space-3);
- align-items: stretch;
- }
-
- .ath-cp-sv {
- position: relative;
- flex: 1;
- min-width: 0;
- height: 180px;
- border-radius: var(--orb-radius-sm);
- border: 1px solid var(--orb-border-strong);
- cursor: crosshair;
- overflow: hidden;
- }
-
- .ath-cp-sv-cursor {
- position: absolute;
- width: 14px;
- height: 14px;
- border-radius: 50%;
- border: 2px solid #fff;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.4);
- transform: translate(-50%, -50%);
- pointer-events: none;
- }
-
- .ath-cp-side {
- display: flex;
- flex-direction: row;
- gap: var(--orb-space-2);
- width: 28px;
- flex-shrink: 0;
- }
-
- .ath-cp-hue,
- .ath-cp-alpha {
- position: relative;
- flex: 1;
- min-width: 0;
- border-radius: var(--orb-radius-full);
- border: 1px solid var(--orb-border-strong);
- cursor: pointer;
- }
-
- .ath-cp-hue {
- background: linear-gradient(to bottom,
- #f00 0%, #ff0 17%, #0f0 33%,
- #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
- }
-
- .ath-cp-alpha {
- background:
- linear-gradient(to bottom, transparent 0%, var(--ath-cp-color, #000) 100%),
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
- var(--orb-surface);
- background-size: 100% 100%, 8px 8px, 8px 8px, 100% 100%;
- background-position: 0 0, 0 0, 4px 4px, 0 0;
- }
-
- .ath-cp-hue-cursor,
- .ath-cp-alpha-cursor {
- position: absolute;
- left: 50%;
- width: 20px;
- height: 12px;
- border-radius: var(--orb-radius-full);
- border: 2px solid #fff;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
- transform: translate(-50%, -50%);
- pointer-events: none;
- }
-
- .ath-cp-tabs {
- align-self: flex-start;
- }
-
- .ath-cp-fields {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: var(--orb-space-3);
- }
-
- .ath-cp-field .orb-label {
- margin-bottom: var(--orb-space-1);
- text-transform: uppercase;
- font-size: 0.6875rem;
- letter-spacing: 0.05em;
- }
-
- .ath-cp-field .orb-input {
- min-height: 36px;
- padding: 6px 10px;
- font-size: 0.8125rem;
- }
-
- .ath-cp-hexwrap .orb-label {
- margin-bottom: var(--orb-space-1);
- text-transform: uppercase;
- font-size: 0.6875rem;
- letter-spacing: 0.05em;
- }
-
- .ath-cp-hexwrap .orb-input {
- min-height: 36px;
- font-size: 0.8125rem;
- }
-
- .ath-cp-actions {
- justify-content: space-between;
- }
-
- .ath-cp-actions-right {
- display: flex;
- gap: var(--orb-space-2);
- }
-
- @media (max-width: 560px) {
- .ath-cp-fields {
- grid-template-columns: repeat(2, 1fr);
- }
-
- .ath-cp-picker-row {
- flex-direction: column;
- }
-
- .ath-cp-side {
- width: 100%;
- height: 24px;
- }
-
- .ath-cp-hue,
- .ath-cp-alpha {
- height: 24px;
- }
-
- .ath-cp-hue {
- background: linear-gradient(to right,
- #f00 0%, #ff0 17%, #0f0 33%,
- #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
- }
-
- .ath-cp-alpha {
- background:
- linear-gradient(to right, transparent 0%, var(--ath-cp-color, #000) 100%),
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
- linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
- var(--orb-surface);
- background-size: 100% 100%, 8px 8px, 8px 8px, 100% 100%;
- background-position: 0 0, 0 0, 4px 4px, 0 0;
- }
-
- .ath-cp-hue-cursor,
- .ath-cp-alpha-cursor {
- top: 50% !important;
- left: auto;
- width: 12px;
- height: 20px;
- }
- }
- .ath-ai-window {
- position: fixed;
- z-index: 900;
- display: flex;
- flex-direction: column;
- min-width: 0;
- background: var(--orb-surface);
- color: var(--orb-text);
- border: 1px solid var(--orb-border-strong);
- border-radius: var(--orb-radius-md);
- box-shadow: var(--orb-shadow-lg);
- outline: none;
- }
-
- .ath-ai-window[hidden] {
- display: none;
- }
-
- .ath-ai-head {
- display: flex;
- align-items: center;
- gap: var(--orb-space-2);
- padding: 8px 8px 8px 12px;
- border-bottom: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-md) var(--orb-radius-md) 0 0;
- background: var(--orb-surface-alt);
- cursor: move;
- user-select: none;
- touch-action: none;
- }
-
- .ath-ai-logo {
- display: grid;
- place-items: center;
- color: var(--orb-primary);
- }
-
- .ath-ai-title {
- font-weight: 700;
- font-size: 0.875rem;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- min-width: 0;
- }
-
- .ath-ai-chip {
- flex-shrink: 0;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-full);
- background: var(--orb-surface);
- color: var(--orb-text-muted);
- font: inherit;
- font-size: 0.75rem;
- font-variant-numeric: tabular-nums;
- padding: 2px 10px;
- cursor: pointer;
- transition: border-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-ai-chip:hover {
- border-color: var(--orb-primary-border);
- color: var(--orb-text);
- }
-
- .ath-ai-chip.is-over {
- border-color: var(--orb-warning);
- color: var(--orb-warning);
- }
-
- .ath-ai-spacer {
- flex: 1;
- }
-
- .ath-ai-master {
- display: flex;
- align-items: center;
- cursor: default;
- }
-
- .ath-ai-body {
- flex: 1;
- display: flex;
- min-height: 0;
- overflow: hidden;
- border-radius: 0 0 var(--orb-radius-md) var(--orb-radius-md);
- }
-
- .ath-ai-nav {
- display: flex;
- flex-direction: column;
- gap: 2px;
- width: 196px;
- flex-shrink: 0;
- padding: var(--orb-space-2);
- border-right: 1px solid var(--orb-border);
- overflow-y: auto;
- }
-
- .ath-ai-nav-item {
- display: flex;
- align-items: center;
- gap: 10px;
- width: 100%;
- padding: 7px 10px;
- border: none;
- border-radius: var(--orb-radius-sm);
- background: transparent;
- color: var(--orb-text-muted);
- font: inherit;
- font-size: 0.8125rem;
- text-align: left;
- cursor: pointer;
- transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-ai-nav-item span {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .ath-ai-nav-item:hover {
- background: var(--orb-surface-hover);
- color: var(--orb-text);
- }
-
- .ath-ai-nav-item.is-active {
- background: var(--orb-primary-dim);
- color: var(--orb-primary-text);
- font-weight: 600;
- }
-
- .ath-ai-window.is-compact .ath-ai-nav {
- width: 48px;
- padding: 6px;
- }
-
- .ath-ai-window.is-compact .ath-ai-nav-item {
- justify-content: center;
- padding: 8px 0;
- }
-
- .ath-ai-window.is-compact .ath-ai-nav-item span {
- display: none;
- }
-
- .ath-ai-content {
- flex: 1;
- min-width: 0;
- overflow-y: auto;
- padding: var(--orb-space-4) var(--orb-space-5) var(--orb-space-6);
- }
-
- .ath-ai-section-title {
- font-size: 1rem;
- font-weight: 700;
- margin-bottom: var(--orb-space-3);
- }
-
- .ath-ai-section.ath-settings {
- gap: var(--orb-space-3);
- }
-
- .ath-ai-subhead {
- font-size: 0.6875rem;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- color: var(--orb-text-subtle);
- margin-top: var(--orb-space-3);
- }
-
- .ath-ai-row {
- grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
- }
-
- .ath-ai-window.is-compact .ath-ai-row {
- grid-template-columns: 1fr;
- gap: var(--orb-space-2);
- }
-
- .ath-ai-window.is-compact .ath-ai-row .ath-set-control {
- justify-content: flex-start;
- }
-
- .ath-ai-row .ath-set-control > .orb-input,
- .ath-ai-row .ath-set-control > .orb-select {
- width: 100%;
- }
-
- .ath-ai-actions {
- display: flex;
- flex-wrap: wrap;
- gap: var(--orb-space-2);
- margin-top: var(--orb-space-2);
- }
-
- .ath-ai-actions .orb-btn .ath-icon,
- .ath-ai-row .orb-btn .ath-icon,
- .ath-ai-pass .orb-btn .ath-icon {
- width: 14px;
- height: 14px;
- }
-
- .ath-ai-unit {
- display: flex;
- align-items: center;
- gap: var(--orb-space-2);
- width: 100%;
- }
-
- .ath-ai-unit span {
- font-size: 0.75rem;
- color: var(--orb-text-subtle);
- }
-
- .ath-ai-number {
- min-height: 36px;
- padding-top: 6px;
- padding-bottom: 6px;
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-area-wrap {
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
-
- .ath-ai-area {
- width: 100%;
- min-height: 90px;
- font-size: 0.8125rem;
- line-height: 1.55;
- }
-
- .ath-ai-area.orb-mono {
- font-family: var(--ath-font-code);
- }
-
- .ath-ai-counter {
- align-self: flex-end;
- font-size: 0.75rem;
- color: var(--orb-text-subtle);
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-live {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-2);
- }
-
- .ath-ai-spend {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-2);
- padding: var(--orb-space-3);
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-surface-alt);
- }
-
- .ath-ai-spend-main {
- display: flex;
- align-items: baseline;
- gap: var(--orb-space-2);
- flex-wrap: wrap;
- }
-
- .ath-ai-spend-main strong {
- font-size: 1.25rem;
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-spend-main span {
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- }
-
- .ath-ai-progress {
- height: 8px;
- }
-
- .ath-ai-progress.is-over {
- --orb-tone: var(--orb-warning);
- }
-
- .ath-ai-stats {
- display: flex;
- flex-wrap: wrap;
- gap: 4px var(--orb-space-4);
- font-size: 0.75rem;
- color: var(--orb-text-muted);
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-table-wrap {
- overflow-x: auto;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- }
-
- .ath-ai-models {
- font-size: 0.75rem;
- min-width: 880px;
- }
-
- .ath-ai-models th,
- .ath-ai-models td {
- padding: 4px 6px;
- vertical-align: middle;
- }
-
- .ath-ai-models th {
- font-size: 0.6875rem;
- white-space: nowrap;
- }
-
- .ath-ai-models .orb-input,
- .ath-ai-models .orb-select {
- min-height: 30px;
- padding: 4px 8px;
- font-size: 0.75rem;
- }
-
- .ath-ai-cell-select {
- min-width: 112px;
- }
-
- .ath-ai-model-id {
- min-width: 180px;
- font-family: var(--ath-font-code);
- }
-
- .ath-ai-price {
- width: 76px;
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-center {
- text-align: center;
- }
-
- .ath-ai-models tr.is-unpriced td:nth-child(5) .orb-input,
- .ath-ai-models tr.is-unpriced td:nth-child(6) .orb-input {
- border-color: var(--orb-warning);
- }
-
- .ath-ai-key-control {
- display: flex;
- align-items: center;
- gap: 6px;
- width: 100%;
- }
-
- .ath-ai-key-control .orb-input {
- flex: 1;
- min-width: 0;
- min-height: 34px;
- padding-top: 5px;
- padding-bottom: 5px;
- font-size: 0.8125rem;
- }
-
- .ath-ai-pass {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: var(--orb-space-2);
- margin-top: var(--orb-space-2);
- }
-
- .ath-ai-pass .orb-input {
- flex: 1 1 160px;
- min-width: 0;
- min-height: 36px;
- padding-top: 6px;
- padding-bottom: 6px;
- }
-
- .ath-ai-probe-box {
- display: flex;
- flex-direction: column;
- gap: 4px;
- width: 100%;
- }
-
- .ath-ai-probe {
- font-size: 0.75rem;
- color: var(--orb-success);
- min-height: 1em;
- }
-
- .ath-ai-probe.is-excluded {
- color: var(--orb-danger);
- }
-
- .ath-ai-consent {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-3);
- }
-
- .ath-ai-consent-list {
- display: flex;
- flex-direction: column;
- gap: 8px;
- padding-left: 1.2em;
- list-style: disc;
- font-size: 0.8125rem;
- line-height: 1.55;
- color: var(--orb-text-muted);
- }
-
- .ath-ai-consent-check {
- align-items: flex-start;
- font-size: 0.8125rem;
- line-height: 1.45;
- }
-
- .ath-ai-resize {
- position: absolute;
- z-index: 2;
- touch-action: none;
- }
-
- .ath-ai-resize-w,
- .ath-ai-resize-e {
- top: 12px;
- bottom: 12px;
- width: 8px;
- cursor: ew-resize;
- }
-
- .ath-ai-resize-w {
- left: -4px;
- }
-
- .ath-ai-resize-e {
- right: -4px;
- }
-
- .ath-ai-resize-s {
- left: 12px;
- right: 12px;
- bottom: -4px;
- height: 8px;
- cursor: ns-resize;
- }
-
- .ath-ai-resize-sw,
- .ath-ai-resize-se {
- bottom: -4px;
- width: 16px;
- height: 16px;
- }
-
- .ath-ai-resize-sw {
- left: -4px;
- cursor: nesw-resize;
- }
-
- .ath-ai-resize-se {
- right: -4px;
- cursor: nwse-resize;
- }
-
- .orb-dark .ath-ai-window {
- border-color: var(--orb-border);
- }
-
- @media (max-width: 560px) {
- .ath-ai-content {
- padding: var(--orb-space-3);
- }
- }
-
- .ath-ai-row.is-stacked {
- grid-template-columns: 1fr;
- gap: var(--orb-space-2);
- }
-
- .ath-ai-row.is-stacked .ath-set-control {
- justify-content: stretch;
- }
-
- .ath-ai-probe-wrap {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-2);
- }
-
- .ath-ai-probe-out {
- display: flex;
- flex-direction: column;
- gap: 4px;
- font-size: 0.8125rem;
- line-height: 1.5;
- }
-
- .ath-ai-probe-out small {
- color: var(--orb-text-muted);
- }
-
- .ath-ai-probe-out .is-error {
- color: var(--orb-danger);
- }
-
- .ath-ai-approve {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-3);
- }
-
- .ath-ai-approve-reason {
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- font-style: italic;
- }
-
- .ath-ai-diff {
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-width: 0;
- }
-
- .ath-ai-diff-stats {
- display: flex;
- gap: var(--orb-space-3);
- font-size: 0.75rem;
- font-weight: 700;
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-diff-stats .is-add {
- color: var(--orb-success);
- }
-
- .ath-ai-diff-stats .is-del {
- color: var(--orb-danger);
- }
-
- .ath-ai-diff-body {
- max-height: min(56vh, 520px);
- overflow: auto;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- background: var(--ath-editor-bg);
- font-family: var(--ath-font-code);
- font-size: 0.75rem;
- line-height: 1.55;
- padding: 4px 0;
- }
-
- .ath-ai-diff-line {
- display: grid;
- grid-template-columns: 40px 40px minmax(0, 1fr);
- white-space: pre;
- min-width: max-content;
- }
-
- .ath-ai-diff-no {
- padding: 0 6px;
- text-align: right;
- color: var(--orb-text-subtle);
- user-select: none;
- }
-
- .ath-ai-diff-text {
- padding-right: 12px;
- }
-
- .ath-ai-diff-line.is-add {
- background: color-mix(in srgb, var(--orb-success) 14%, transparent);
- }
-
- .ath-ai-diff-line.is-del {
- background: color-mix(in srgb, var(--orb-danger) 13%, transparent);
- }
-
- .ath-ai-diff-gap {
- padding: 2px 12px;
- color: var(--orb-text-subtle);
- font-family: var(--orb-font-sans, inherit);
- }
-
- .ath-ai-changes {
- display: flex;
- flex-direction: column;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- }
-
- .ath-ai-change {
- display: flex;
- align-items: center;
- gap: var(--orb-space-3);
- padding: 8px 8px 8px 12px;
- border-bottom: 1px solid var(--orb-border);
- }
-
- .ath-ai-change:last-child {
- border-bottom: none;
- }
-
- .ath-ai-change.is-undone .ath-ai-change-op {
- text-decoration: line-through;
- color: var(--orb-text-subtle);
- }
-
- .ath-ai-change-main {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- gap: 2px;
- }
-
- .ath-ai-change-op {
- font-size: 0.8125rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .ath-ai-change-main small {
- font-size: 0.6875rem;
- color: var(--orb-text-subtle);
- }
-
- .ath-ai-change-actions {
- display: flex;
- gap: 2px;
- }
-
- .ath-ai-audit {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: var(--orb-space-3);
- align-items: start;
- }
-
- .ath-ai-audit-col {
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-width: 0;
- padding: var(--orb-space-3);
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- }
-
- .ath-ai-audit-col h4 {
- font-size: 0.8125rem;
- font-weight: 700;
- }
-
- .ath-ai-audit-col img {
- width: 100%;
- max-height: 320px;
- object-fit: cover;
- object-position: top;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-xs);
- background: #ffffff;
- }
-
- .ath-ai-audit-col ul {
- display: flex;
- flex-direction: column;
- gap: 4px;
- padding-left: 1.1em;
- list-style: disc;
- font-size: 0.75rem;
- line-height: 1.45;
- color: var(--orb-text-muted);
- overflow-wrap: anywhere;
- }
-
- .ath-ai-audit-col li.is-high {
- color: var(--orb-danger);
- }
-
- .ath-ai-audit-col li.is-ok {
- color: var(--orb-success);
- }
-
- .ath-ai-content.is-full {
- padding: 0;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
-
- .ath-ai-section.is-full {
- flex: 1;
- min-height: 0;
- display: flex;
- flex-direction: column;
- }
-
- .ath-ai-snippet {
- max-height: 180px;
- overflow: auto;
- padding: 8px 10px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-surface-alt);
- font-family: var(--ath-font-code);
- font-size: 0.75rem;
- line-height: 1.5;
- white-space: pre-wrap;
- }
-
- .ath-ai-chat {
- flex: 1;
- min-height: 0;
- display: flex;
- flex-direction: column;
- }
-
- .ath-ai-chat-off {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: var(--orb-space-3);
- padding: 8px 12px;
- border-bottom: 1px solid var(--orb-border);
- background: color-mix(in srgb, var(--orb-info, var(--orb-primary)) 8%, var(--orb-surface));
- font-size: 0.8125rem;
- }
-
- .ath-ai-chat-off[hidden] {
- display: none;
- }
-
- .ath-ai-chat-list {
- flex: 1;
- min-height: 0;
- overflow-y: auto;
- padding: var(--orb-space-3) var(--orb-space-4);
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-3);
- }
-
- .ath-ai-empty {
- margin: auto;
- max-width: 420px;
- text-align: center;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- padding: var(--orb-space-6) 0;
- }
-
- .ath-ai-empty-logo {
- display: grid;
- place-items: center;
- width: 44px;
- height: 44px;
- border-radius: var(--orb-radius-full);
- background: var(--orb-primary-dim);
- color: var(--orb-primary);
- }
-
- .ath-ai-empty-logo .ath-icon {
- width: 22px;
- height: 22px;
- }
-
- .ath-ai-empty-title {
- font-weight: 700;
- font-size: 0.9375rem;
- }
-
- .ath-ai-empty-text {
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- line-height: 1.5;
- }
-
- .ath-ai-examples {
- display: flex;
- flex-direction: column;
- gap: 6px;
- width: 100%;
- margin-top: var(--orb-space-2);
- }
-
- .ath-ai-example {
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-surface);
- color: var(--orb-text);
- font: inherit;
- font-size: 0.8125rem;
- text-align: left;
- padding: 8px 12px;
- cursor: pointer;
- transition: border-color var(--orb-dur-fast) var(--orb-ease), background-color var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-ai-example:hover {
- border-color: var(--orb-primary-border);
- background: var(--orb-surface-hover);
- }
-
- .ath-ai-msg {
- display: flex;
- flex-direction: column;
- gap: 4px;
- min-width: 0;
- }
-
- .ath-ai-msg.is-user {
- align-self: flex-end;
- max-width: 88%;
- padding: 8px 12px;
- border-radius: var(--orb-radius-md) var(--orb-radius-md) 4px var(--orb-radius-md);
- background: var(--orb-primary-dim);
- }
-
- .ath-ai-msg.is-user.is-auto {
- background: color-mix(in srgb, var(--orb-warning) 12%, var(--orb-surface));
- }
-
- .ath-ai-msg-head {
- display: flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- font-size: 0.75rem;
- }
-
- .ath-ai-msg-who {
- font-weight: 700;
- white-space: nowrap;
- }
-
- .ath-ai-msg-meta {
- flex: 1;
- min-width: 0;
- color: var(--orb-text-subtle);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-msg-head .ath-icon-btn {
- width: 22px;
- height: 22px;
- opacity: 0.7;
- }
-
- .ath-ai-msg-body {
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-width: 0;
- }
-
- .ath-ai-md {
- font-size: 0.875rem;
- line-height: 1.6;
- overflow-wrap: anywhere;
- min-width: 0;
- }
-
- .ath-ai-md > * + * {
- margin-top: 0.6em;
- }
-
- .ath-ai-md h3,
- .ath-ai-md h4,
- .ath-ai-md h5,
- .ath-ai-md h6 {
- font-size: 0.875rem;
- font-weight: 700;
- }
-
- .ath-ai-md h3 {
- font-size: 0.9375rem;
- }
-
- .ath-ai-md ul,
- .ath-ai-md ol {
- padding-left: 1.3em;
- }
-
- .ath-ai-md ul {
- list-style: disc;
- }
-
- .ath-ai-md ol {
- list-style: decimal;
- }
-
- .ath-ai-md li + li {
- margin-top: 2px;
- }
-
- .ath-ai-md code {
- font-family: var(--ath-font-code);
- font-size: 0.8em;
- padding: 1px 5px;
- border-radius: var(--orb-radius-xs);
- background: var(--orb-surface-alt);
- border: 1px solid var(--orb-border);
- }
-
- .ath-ai-md a {
- color: var(--orb-primary-text);
- text-decoration: underline;
- text-underline-offset: 2px;
- }
-
- .ath-ai-md a.ath-ai-fileref {
- text-decoration: none;
- }
-
- .ath-ai-md a.ath-ai-fileref code {
- color: var(--orb-primary-text);
- border-color: var(--orb-primary-border);
- }
-
- .ath-ai-md blockquote {
- padding-left: 10px;
- border-left: 3px solid var(--orb-border-strong);
- color: var(--orb-text-muted);
- }
-
- .ath-ai-md hr {
- border: none;
- border-top: 1px solid var(--orb-border);
- }
-
- .ath-ai-table {
- overflow-x: auto;
- }
-
- .ath-ai-md table {
- border-collapse: collapse;
- font-size: 0.8125rem;
- }
-
- .ath-ai-md th,
- .ath-ai-md td {
- border: 1px solid var(--orb-border);
- padding: 4px 8px;
- text-align: left;
- vertical-align: top;
- }
-
- .ath-ai-md th {
- background: var(--orb-surface-alt);
- }
-
- .ath-ai-code {
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- overflow: hidden;
- background: var(--ath-editor-bg);
- }
-
- .ath-ai-code-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 2px 4px 2px 10px;
- border-bottom: 1px solid var(--orb-border);
- font-size: 0.6875rem;
- color: var(--orb-text-subtle);
- background: var(--orb-surface-alt);
- }
-
- .ath-ai-copy {
- border: none;
- background: transparent;
- color: var(--orb-text-muted);
- font: inherit;
- font-size: 0.6875rem;
- padding: 3px 6px;
- border-radius: var(--orb-radius-xs);
- cursor: pointer;
- }
-
- .ath-ai-copy:hover {
- background: var(--orb-surface-hover);
- color: var(--orb-text);
- }
-
- .ath-ai-code pre {
- margin: 0;
- padding: 8px 10px;
- overflow-x: auto;
- font-family: var(--ath-font-code);
- font-size: 0.75rem;
- line-height: 1.55;
- }
-
- .ath-ai-code pre code {
- padding: 0;
- border: none;
- background: none;
- font-size: inherit;
- }
-
- .ath-ai-ev {
- display: flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- font-size: 0.75rem;
- color: var(--orb-text-muted);
- padding: 2px 0;
- }
-
- .ath-ai-ev-icon {
- display: grid;
- place-items: center;
- flex-shrink: 0;
- }
-
- .ath-ai-ev-icon .ath-icon {
- width: 13px;
- height: 13px;
- }
-
- .ath-ai-ev-text {
- flex: 1;
- min-width: 0;
- overflow-wrap: anywhere;
- }
-
- .ath-ai-ev.is-ok .ath-ai-ev-icon {
- color: var(--orb-success);
- }
-
- .ath-ai-ev.is-danger {
- color: var(--orb-danger);
- }
-
- .ath-ai-ev.is-warn {
- color: color-mix(in srgb, var(--orb-warning) 75%, var(--orb-text));
- }
-
- .ath-ai-ev.is-change {
- color: var(--orb-text);
- padding: 4px 4px 4px 8px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-surface-alt);
- }
-
- .ath-ai-ev.is-change .ath-ai-ev-icon {
- color: var(--orb-success);
- }
-
- .ath-ai-ev.is-undone .ath-ai-ev-text {
- text-decoration: line-through;
- color: var(--orb-text-subtle);
- }
-
- .ath-ai-ev-actions {
- display: flex;
- gap: 2px;
- }
-
- .ath-ai-ev-actions .ath-icon-btn {
- width: 24px;
- height: 24px;
- }
-
- .ath-ai-ev-spin {
- width: 10px;
- height: 10px;
- border: 2px solid var(--orb-border-strong);
- border-top-color: var(--orb-primary);
- border-radius: 50%;
- animation: ath-ai-spin 0.8s linear infinite;
- }
-
- .ath-ai-msg:not(.is-pending) .ath-ai-ev-spin {
- display: none;
- }
-
- @keyframes ath-ai-spin {
- to {
- transform: rotate(360deg);
- }
- }
-
- .ath-ai-ev-detail {
- margin: 0 0 4px 21px;
- font-size: 0.6875rem;
- color: var(--orb-text-muted);
- }
-
- .ath-ai-ev-detail summary {
- cursor: pointer;
- }
-
- .ath-ai-ev-detail pre {
- white-space: pre-wrap;
- font-family: var(--ath-font-code);
- margin-top: 4px;
- }
-
- .ath-ai-typing {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 4px 0;
- }
-
- .ath-ai-typing span {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: var(--orb-text-subtle);
- animation: ath-ai-dot 1.2s ease-in-out infinite;
- }
-
- .ath-ai-typing span:nth-child(2) {
- animation-delay: 0.15s;
- }
-
- .ath-ai-typing span:nth-child(3) {
- animation-delay: 0.3s;
- }
-
- .ath-ai-typing small {
- margin-left: 6px;
- font-size: 0.6875rem;
- color: var(--orb-text-subtle);
- }
-
- @keyframes ath-ai-dot {
- 0%, 80%, 100% {
- opacity: 0.25;
- transform: translateY(0);
- }
- 40% {
- opacity: 1;
- transform: translateY(-2px);
- }
- }
-
- @media (prefers-reduced-motion: reduce) {
- .ath-ai-typing span,
- .ath-ai-ev-spin {
- animation: none;
- }
- }
-
- .ath-ai-attach {
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
- }
-
- .ath-ai-chip-static {
- font-size: 0.6875rem;
- padding: 1px 8px;
- border-radius: var(--orb-radius-full);
- background: var(--orb-surface);
- color: var(--orb-text-muted);
- border: 1px solid var(--orb-border);
- }
-
- .ath-ai-composer {
- display: flex;
- flex-direction: column;
- gap: 6px;
- padding: 8px 10px 10px;
- border-top: 1px solid var(--orb-border);
- background: var(--orb-surface);
- }
-
- .ath-ai-chips {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
- }
-
- .ath-ai-chips[hidden] {
- display: none;
- }
-
- .ath-ai-chip {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- max-width: 100%;
- padding: 2px 4px 2px 8px;
- border: 1px solid var(--orb-primary-border);
- border-radius: var(--orb-radius-full);
- background: var(--orb-primary-dim);
- color: var(--orb-primary-text);
- font-size: 0.75rem;
- }
-
- .ath-ai-chip img {
- width: 18px;
- height: 18px;
- object-fit: cover;
- border-radius: 3px;
- }
-
- .ath-ai-chip .ath-icon {
- width: 13px;
- height: 13px;
- }
-
- .ath-ai-chip button {
- display: grid;
- place-items: center;
- width: 18px;
- height: 18px;
- border: none;
- border-radius: 50%;
- background: transparent;
- color: inherit;
- cursor: pointer;
- }
-
- .ath-ai-chip button:hover {
- background: color-mix(in srgb, var(--orb-primary) 18%, transparent);
- }
-
- .ath-ai-chat-input {
- width: 100%;
- min-height: 44px;
- max-height: 220px;
- resize: none;
- padding: 8px 10px;
- border: 1px solid var(--orb-border-strong);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-bg);
- color: var(--orb-text);
- font: inherit;
- font-size: 0.875rem;
- line-height: 1.5;
- outline: none;
- transition: border-color var(--orb-dur-fast) var(--orb-ease), box-shadow var(--orb-dur-fast) var(--orb-ease);
- }
-
- .ath-ai-chat-input:focus {
- border-color: var(--orb-primary);
- box-shadow: 0 0 0 3px var(--orb-primary-dim);
- }
-
- .ath-ai-composer-bar {
- display: flex;
- align-items: center;
- gap: 6px;
- min-width: 0;
- }
-
- .ath-ai-override.orb-select {
- width: auto;
- max-width: 46%;
- min-height: 30px;
- padding-top: 3px;
- padding-bottom: 3px;
- font-size: 0.75rem;
- }
-
- .ath-ai-total {
- font-size: 0.6875rem;
- color: var(--orb-text-subtle);
- white-space: nowrap;
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-send .ath-icon {
- width: 14px;
- height: 14px;
- }
-
- .ath-ai-window.is-compact .ath-ai-total {
- display: none;
- }
-
- .ath-ai-engine {
- display: flex;
- flex-direction: column;
- gap: 6px;
- width: 100%;
- }
-
- .ath-ai-engine-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: var(--orb-space-3);
- width: 100%;
- font-weight: 600;
- }
-
- .ath-ai-engine-row .ath-set-label > span {
- width: 100%;
- }
-
- .ath-ai-engine-row.is-disabled .ath-ai-engine {
- opacity: 0.55;
- }
-
- .ath-ai-fee-row {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 0.75rem;
- color: var(--orb-text-muted);
- }
-
- .ath-ai-fee.orb-input {
- width: 110px;
- min-height: 30px;
- padding-top: 3px;
- padding-bottom: 3px;
- font-size: 0.8125rem;
- }
-
- .cm-ghost-text {
- color: var(--orb-text-subtle);
- opacity: 0.8;
- white-space: pre;
- pointer-events: none;
- }
-
- body.ath-ai-docked .ath-main {
- margin-right: var(--ath-ai-dock-w, 420px);
- }
-
- .ath-ai-window.is-docked {
- top: var(--ath-topbar-h);
- bottom: var(--ath-status-h);
- right: 0;
- left: auto;
- height: auto;
- z-index: 60;
- border-radius: 0;
- border-width: 0 0 0 1px;
- box-shadow: none;
- }
-
- .ath-ai-window.is-docked .ath-ai-head {
- cursor: default;
- border-radius: 0;
- }
-
- .ath-ai-window.is-docked .ath-ai-body {
- border-radius: 0;
- }
-
- .ath-ai-window.is-docked .ath-ai-resize:not(.ath-ai-resize-w) {
- display: none;
- }
-
- .ath-ai-window.is-docked .ath-ai-resize-w {
- left: -3px;
- top: 0;
- bottom: 0;
- width: 6px;
- }
-
- .ath-ai-proof {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-3);
- }
-
- .ath-ai-proof-diff {
- max-height: min(50vh, 460px);
- overflow: auto;
- padding: 10px 12px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-surface-alt);
- font-size: 0.875rem;
- line-height: 1.65;
- white-space: pre-wrap;
- overflow-wrap: anywhere;
- }
-
- .ath-ai-proof-diff del {
- color: var(--orb-danger);
- background: color-mix(in srgb, var(--orb-danger) 12%, transparent);
- text-decoration: line-through;
- }
-
- .ath-ai-proof-diff ins {
- color: color-mix(in srgb, var(--orb-success) 70%, var(--orb-text));
- background: color-mix(in srgb, var(--orb-success) 14%, transparent);
- text-decoration: none;
- }
-
- .ath-ai-proof-notes-head {
- font-size: 0.8125rem;
- font-weight: 700;
- margin-bottom: 4px;
- }
-
- .ath-ai-proof-meta {
- font-size: 0.75rem;
- color: var(--orb-text-subtle);
- }
-
- .ath-ai-proof-opts {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
-
- .ath-ai-proof-style {
- margin-top: 6px;
- }
-
- .ath-ai-suggest {
- display: flex;
- flex-direction: column;
- max-height: 240px;
- overflow-y: auto;
- border: 1px solid var(--orb-border-strong);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-surface);
- box-shadow: var(--orb-shadow-lg);
- padding: 4px;
- }
-
- .ath-ai-suggest[hidden] {
- display: none;
- }
-
- .ath-ai-suggest-item {
- display: flex;
- align-items: baseline;
- gap: 10px;
- width: 100%;
- padding: 5px 8px;
- border: none;
- border-radius: var(--orb-radius-xs);
- background: transparent;
- color: var(--orb-text-muted);
- font: inherit;
- font-size: 0.8125rem;
- text-align: left;
- cursor: pointer;
- }
-
- .ath-ai-suggest-item code,
- .ath-ai-cmd code {
- font-family: var(--ath-font-code);
- font-size: 0.8125rem;
- color: var(--orb-primary-text);
- white-space: nowrap;
- }
-
- .ath-ai-suggest-item span {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .ath-ai-suggest-item.is-active,
- .ath-ai-suggest-item:hover {
- background: var(--orb-primary-dim);
- color: var(--orb-text);
- }
-
- .ath-ai-cmd-list {
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
-
- .ath-ai-cmd {
- display: grid;
- grid-template-columns: 110px minmax(0, 1fr);
- gap: 10px;
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- line-height: 1.45;
- }
-
- .ath-ai-eval-tasks {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
- gap: 6px 16px;
- }
-
- .ath-ai-eval-progress {
- font-size: 0.8125rem;
- color: var(--orb-text-muted);
- min-height: 1.2em;
- }
-
- .ath-ai-eval-table {
- font-size: 0.75rem;
- min-width: 640px;
- }
-
- .ath-ai-eval-table td,
- .ath-ai-eval-table th {
- padding: 6px 8px;
- vertical-align: top;
- }
-
- .ath-ai-eval-table tr.is-total td {
- font-weight: 700;
- border-top: 1px solid var(--orb-border-strong);
- }
-
- .ath-ai-eval-score {
- font-weight: 700;
- font-variant-numeric: tabular-nums;
- }
-
- .ath-ai-eval-score.is-good {
- color: var(--orb-success);
- }
-
- .ath-ai-eval-score.is-mid {
- color: color-mix(in srgb, var(--orb-warning) 75%, var(--orb-text));
- }
-
- .ath-ai-eval-score.is-bad {
- color: var(--orb-danger);
- }
-
- .ath-ai-eval-model,
- .ath-ai-eval-notes {
- color: var(--orb-text-muted);
- overflow-wrap: anywhere;
- }
-
- .ath-ai-eval-history {
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
-
- .ath-ai-eval-run {
- display: flex;
- flex-direction: column;
- gap: 2px;
- padding: 8px 10px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- font-size: 0.8125rem;
- }
-
- .ath-ai-eval-run small {
- font-size: 0.6875rem;
- color: var(--orb-text-subtle);
- }
-
- .ath-ai-secret {
- display: inline-block;
- padding: 0 6px;
- border-radius: 999px;
- background: color-mix(in srgb, var(--orb-success) 14%, transparent);
- color: var(--orb-text);
- font-family: var(--orb-font-mono, monospace);
- font-size: 0.85em;
- line-height: 1.5;
- white-space: nowrap;
- cursor: help;
- }
-
- .ath-ai-redact-list {
- list-style: none;
- margin: 0 0 var(--orb-space-3);
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
-
- .ath-ai-redact-list li {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 8px;
- padding: 6px 0;
- border-bottom: 1px solid var(--orb-border);
- }
-
- .ath-ai-redact-list small {
- color: var(--orb-text-muted);
- flex: 1 1 120px;
- min-width: 0;
- overflow-wrap: anywhere;
- }
-
- .ath-ai-redact-out pre {
- margin: 0;
- padding: var(--orb-space-3);
- max-height: 260px;
- overflow: auto;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm, 6px);
- font-size: 0.8rem;
- white-space: pre-wrap;
- overflow-wrap: anywhere;
- }
-
- .ath-ai-redact-sum {
- margin: var(--orb-space-2) 0;
- font-size: 0.8rem;
- color: var(--orb-text-muted);
- }
-
- .ath-ai-redact-hit {
- background: color-mix(in srgb, var(--orb-warning) 30%, transparent);
- color: inherit;
- border-radius: 3px;
- }
-
- .ath-link-hover {
- text-decoration: underline;
- text-underline-offset: 2px;
- cursor: pointer;
- color: var(--orb-primary-text);
- }
-
- .ath-link-confirm {
- display: flex;
- flex-direction: column;
- gap: var(--orb-space-2);
- }
-
- .ath-link-host {
- font-size: 1.05rem;
- font-weight: 600;
- overflow-wrap: anywhere;
- }
-
- .ath-link-full {
- padding: var(--orb-space-2) var(--orb-space-3);
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm, 6px);
- font-family: var(--orb-font-mono, monospace);
- font-size: 0.8rem;
- color: var(--orb-text-muted);
- word-break: break-all;
- max-height: 160px;
- overflow: auto;
- }
-
- .ath-ai-relay-badge {
- padding: 1px 8px;
- font-size: 0.7rem;
- font-weight: 600;
- }
-
- .ath-ai-relay-files {
- flex-wrap: wrap;
- justify-content: flex-start;
- }
-
- .ath-ai-relay-how {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
- gap: var(--orb-space-3);
- margin: var(--orb-space-3) 0;
- }
-
- .ath-ai-relay-how > div {
- padding: var(--orb-space-3);
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm, 6px);
- min-width: 0;
- }
-
- .ath-ai-relay-how h4 {
- margin: 0 0 var(--orb-space-2);
- font-size: 0.85rem;
- }
-
- .ath-ai-relay-how ol {
- margin: 0 0 var(--orb-space-2);
- padding-left: 1.2em;
- font-size: 0.8rem;
- display: flex;
- flex-direction: column;
- gap: 6px;
- overflow-wrap: anywhere;
- }
-
- .ath-ai-relay-cmd {
- display: flex;
- align-items: center;
- gap: 6px;
- margin-top: 4px;
- }
-
- .ath-ai-relay-cmd code {
- flex: 1 1 auto;
- min-width: 0;
- padding: 4px 8px;
- border-radius: var(--orb-radius-sm, 6px);
- background: var(--orb-surface-alt);
- font-family: var(--orb-font-mono, monospace);
- font-size: 0.75rem;
- overflow-x: auto;
- white-space: nowrap;
- }
-
- .ath-ai-relay-result {
- margin: 0;
- font-size: 0.8rem;
- color: var(--orb-text-muted);
- min-height: 1em;
- }
-
- .ath-ai-relay-result.is-ok {
- color: var(--orb-success);
- }
-
- .ath-ai-relay-result.is-error {
- color: var(--orb-danger);
- }
-
- .ath-ai-engine-name {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- min-width: 0;
- }
-
- .ath-menu-toggle,
- .ath-mobile-nav {
- display: none;
- }
-
- @media (max-width: 720px) {
- .ath-shell {
- grid-template-rows: var(--ath-topbar-h) minmax(0, 1fr) auto;
- }
-
- .ath-statusbar {
- display: none;
- }
-
- .ath-topbar {
- padding: 0 var(--orb-space-2);
- gap: var(--orb-space-1);
- min-width: 0;
- }
-
- .ath-menu-toggle {
- display: inline-flex;
- }
-
- .ath-menus {
- display: none;
- }
-
- body.ath-menus-open .ath-menus {
- position: fixed;
- top: var(--ath-topbar-h);
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 150;
- display: flex;
- flex-direction: column;
- align-items: stretch;
- gap: 2px;
- padding: var(--orb-space-2) var(--orb-space-3) calc(var(--orb-space-6) + env(safe-area-inset-bottom));
- overflow-y: auto;
- background: var(--orb-bg);
- }
-
- body.ath-menus-open .ath-menus .orb-dropdown {
- display: block;
- }
-
- body.ath-menus-open .ath-menu-btn {
- width: 100%;
- height: 48px;
- padding: 0 var(--orb-space-3);
- text-align: left;
- font-size: 1rem;
- }
-
- body.ath-menus-open .ath-menus .orb-dropdown-menu {
- position: static;
- width: auto;
- min-width: 0;
- margin: 0 0 var(--orb-space-2);
- box-shadow: none;
- animation: none;
- }
-
- body.ath-menus-open .ath-menus .orb-dropdown-item {
- min-height: 44px;
- font-size: 0.9375rem;
- }
-
- .ath-menus .orb-kbd,
- .ath-context-menu .orb-kbd,
- .ath-shortcuts {
- display: none;
- }
-
- .ath-topbar-actions {
- gap: 0;
- }
-
- .ath-sidebar {
- width: 100%;
- border-right: none;
- box-shadow: none;
- }
-
- .ath-preview {
- width: 100%;
- border-left: none;
- box-shadow: none;
- }
-
- .ath-mobile-nav {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- padding-bottom: env(safe-area-inset-bottom);
- background: var(--orb-bg);
- border-top: 1px solid var(--orb-border);
- position: relative;
- z-index: 160;
- }
-
- .ath-mobile-nav button {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 2px;
- min-height: 56px;
- border: none;
- background: transparent;
- color: var(--orb-text-muted);
- font: inherit;
- font-size: 0.6875rem;
- font-weight: 600;
- cursor: pointer;
- -webkit-tap-highlight-color: transparent;
- }
-
- .ath-mobile-nav button .ath-icon {
- width: 22px;
- height: 22px;
- }
-
- .ath-mobile-nav button.is-active {
- color: var(--orb-primary-text);
- }
-
- .ath-mobile-nav button.is-active .ath-icon {
- background: var(--orb-primary-dim);
- border-radius: var(--orb-radius-full);
- padding: 2px 14px;
- box-sizing: content-box;
- }
-
- .ath-welcome-actions {
- flex-wrap: wrap;
- justify-content: center;
- }
-
- .ath-tabs {
- overflow-x: auto;
- }
- }
-
- .ath-keybar {
- display: none;
- }
-
- @media (max-width: 720px) {
- .ath-shell {
- height: var(--ath-vh, 100dvh);
- }
-
- body.ath-keybar-on .ath-keybar {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 5;
- display: flex;
- gap: 4px;
- height: 44px;
- padding: 4px 6px;
- overflow-x: auto;
- overscroll-behavior-x: contain;
- scrollbar-width: none;
- background: var(--orb-surface-alt);
- border-top: 1px solid var(--orb-border);
- }
-
- .ath-keybar::-webkit-scrollbar {
- display: none;
- }
-
- body.ath-keybar-on .ath-editor-host {
- bottom: 44px;
- }
-
- .ath-key {
- flex: 0 0 auto;
- min-width: 36px;
- height: 36px;
- padding: 0 8px;
- border: 1px solid var(--orb-border);
- border-radius: var(--orb-radius-sm);
- background: var(--orb-surface);
- color: var(--orb-text);
- font-family: var(--orb-font-mono);
- font-size: 0.9375rem;
- touch-action: manipulation;
- -webkit-tap-highlight-color: transparent;
- user-select: none;
- }
-
- .ath-key.is-wide {
- font-family: inherit;
- font-size: 0.8125rem;
- font-weight: 600;
- }
-
- .ath-key.is-icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- }
-
- .ath-key:active {
- background: var(--orb-primary-dim);
- }
-
- body.ath-touch .orb-dropdown-item,
- body.ath-touch .ath-context-menu .orb-dropdown-item {
- min-height: 44px;
- }
- }
-