Spaces:
Runtime error
Runtime error
Download frontend-react/src/index.css from Amitkasar/ai-api-testing: direct link, hf CLI and curl.
- Browser
- Download file 29.3 kB
-
https://huggingface.co/spaces/Amitkasar/ai-api-testing/resolve/main/frontend-react/src/index.css
- Command line
-
hf download hf://spaces/Amitkasar/ai-api-testing/frontend-react/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/Amitkasar/ai-api-testing/resolve/main/frontend-react/src/index.css
29.3 kB
| @import "tailwindcss"; | |
| /* ββ Design tokens ββββββββββββββββββββββββββββββββββββββββββββ */ | |
| :root { | |
| --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; | |
| } | |
| html[data-theme="dark"] { | |
| --bg-0: #0a0a0b; | |
| --bg-1: #111114; | |
| --bg-2: #16161a; | |
| --bg-3: #1d1d22; | |
| --bg-hov: #232328; | |
| --line-1: rgba(255,255,255,0.06); | |
| --line-2: rgba(255,255,255,0.10); | |
| --line-3: rgba(255,255,255,0.18); | |
| --fg-0: #f4f4f5; | |
| --fg-1: #c4c4c8; | |
| --fg-2: #8a8a92; | |
| --fg-3: #5f5f66; | |
| --fg-4: #3a3a40; | |
| --accent: #4f8cff; | |
| --accent-fg: #ffffff; | |
| --accent-soft: rgba(79,140,255,0.14); | |
| --accent-line: rgba(79,140,255,0.40); | |
| --ok: #3ecf8e; | |
| --ok-soft: rgba(62,207,142,0.12); | |
| --warn: #f5a524; | |
| --warn-soft: rgba(245,165,36,0.12); | |
| --err: #f5604a; | |
| --err-soft: rgba(245,96,74,0.12); | |
| --shadow-sm: 0 1px 0 rgba(255,255,255,0.03), 0 1px 2px rgba(0,0,0,0.4); | |
| --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.5); | |
| color-scheme: dark; | |
| /* ββ Backward-compat aliases (used by existing Tailwind components) ββ */ | |
| --bg-primary: #0a0a0b; | |
| --bg-secondary: #111114; | |
| --bg-tertiary: #16161a; | |
| --bg-elevated: #1d1d22; | |
| --bg-hover: #232328; | |
| --border-subtle: rgba(255,255,255,0.06); | |
| --border-default: rgba(255,255,255,0.10); | |
| --border-strong: rgba(255,255,255,0.18); | |
| --text-primary: #f4f4f5; | |
| --text-secondary: #8a8a92; | |
| --text-tertiary: #5f5f66; | |
| --text-muted: #3a3a40; | |
| --accent-primary: #4f8cff; | |
| --accent-hover: #6ba1ff; | |
| --accent-secondary:#22d3ee; | |
| --accent-glow: rgba(79,140,255,0.14); | |
| --accent-gradient: linear-gradient(135deg, #4f8cff 0%, #22d3ee 100%); | |
| --success: #3ecf8e; | |
| --success-bg: rgba(62,207,142,0.12); | |
| --warning: #f5a524; | |
| --warning-bg: rgba(245,165,36,0.12); | |
| --danger: #f5604a; | |
| --danger-bg: rgba(245,96,74,0.12); | |
| } | |
| html[data-theme="light"] { | |
| --bg-0: #fafaf9; | |
| --bg-1: #ffffff; | |
| --bg-2: #f4f4f2; | |
| --bg-3: #ececea; | |
| --bg-hov: #e4e4e1; | |
| --line-1: rgba(0,0,0,0.06); | |
| --line-2: rgba(0,0,0,0.10); | |
| --line-3: rgba(0,0,0,0.18); | |
| --fg-0: #0c0c0d; | |
| --fg-1: #2a2a2e; | |
| --fg-2: #595960; | |
| --fg-3: #898990; | |
| --fg-4: #b8b8be; | |
| --accent: #2563eb; | |
| --accent-fg: #ffffff; | |
| --accent-soft: rgba(37,99,235,0.10); | |
| --accent-line: rgba(37,99,235,0.35); | |
| --ok: #16a34a; | |
| --ok-soft: rgba(22,163,74,0.10); | |
| --warn: #b45309; | |
| --warn-soft: rgba(180,83,9,0.10); | |
| --err: #dc2626; | |
| --err-soft: rgba(220,38,38,0.10); | |
| --shadow-sm: 0 1px 0 rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04); | |
| --shadow-md: 0 8px 24px -10px rgba(0,0,0,0.12); | |
| color-scheme: light; | |
| /* ββ Backward-compat aliases ββ */ | |
| --bg-primary: #fafaf9; | |
| --bg-secondary: #ffffff; | |
| --bg-tertiary: #f4f4f2; | |
| --bg-elevated: #ececea; | |
| --bg-hover: #e4e4e1; | |
| --border-subtle: rgba(0,0,0,0.06); | |
| --border-default: rgba(0,0,0,0.10); | |
| --border-strong: rgba(0,0,0,0.18); | |
| --text-primary: #0c0c0d; | |
| --text-secondary: #595960; | |
| --text-tertiary: #898990; | |
| --text-muted: #b8b8be; | |
| --accent-primary: #2563eb; | |
| --accent-hover: #3b82f6; | |
| --accent-secondary:#0891b2; | |
| --accent-glow: rgba(37,99,235,0.10); | |
| --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%); | |
| --success: #16a34a; | |
| --success-bg: rgba(22,163,74,0.10); | |
| --warning: #b45309; | |
| --warning-bg: rgba(180,83,9,0.10); | |
| --danger: #dc2626; | |
| --danger-bg: rgba(220,38,38,0.10); | |
| } | |
| /* ββ Reset & Base βββββββββββββββββββββββββββββββββββββββββββββ */ | |
| *,*::before,*::after { box-sizing: border-box; } | |
| html, body, #root { height: 100%; } | |
| body { | |
| margin: 0; | |
| font-family: var(--font-mono); | |
| font-size: 13px; | |
| line-height: 1.5; | |
| background: var(--bg-0); | |
| color: var(--fg-0); | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| overflow: hidden; | |
| font-feature-settings: "ss01","ss02","cv01"; | |
| } | |
| button { font-family: inherit; font-size: inherit; cursor: pointer; } | |
| input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; } | |
| ::selection { background: var(--accent-soft); } | |
| /* ββ Scrollbars βββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| ::-webkit-scrollbar { width: 10px; height: 10px; } | |
| ::-webkit-scrollbar-track { background: transparent; } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--line-2); | |
| border-radius: 999px; | |
| border: 2px solid transparent; | |
| background-clip: padding-box; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: var(--line-3); | |
| background-clip: padding-box; | |
| } | |
| /* ββ App layout βββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .app { | |
| display: flex; | |
| height: 100%; | |
| background: var(--bg-0); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| /* ββ Sidebar βββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .sidebar { | |
| border-right: 1px solid var(--line-1); | |
| background: var(--bg-1); | |
| display: flex; | |
| flex-direction: column; | |
| width: 220px; | |
| transition: width 180ms ease; | |
| flex-shrink: 0; | |
| overflow: hidden; | |
| } | |
| .sidebar.collapsed { width: 52px; } | |
| .sb-head { | |
| height: 48px; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 0 12px; | |
| border-bottom: 1px solid var(--line-1); | |
| flex-shrink: 0; | |
| } | |
| .sb-mark { | |
| width: 22px; | |
| height: 22px; | |
| border: 1px solid var(--fg-0); | |
| display: grid; | |
| place-items: center; | |
| font-weight: 700; | |
| font-size: 11px; | |
| flex-shrink: 0; | |
| color: var(--fg-0); | |
| position: relative; | |
| overflow: visible; | |
| } | |
| .sb-mark::after { | |
| content: ""; | |
| position: absolute; | |
| width: 5px; | |
| height: 5px; | |
| background: var(--accent); | |
| transform: translate(7px, -7px); | |
| } | |
| .sb-name { | |
| font-weight: 600; | |
| letter-spacing: -0.02em; | |
| color: var(--fg-0); | |
| font-size: 12px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| flex: 1; | |
| } | |
| .sb-name .dim { color: var(--fg-3); font-weight: 500; } | |
| .sb-toggle { | |
| width: 22px; | |
| height: 22px; | |
| border: 1px solid var(--line-2); | |
| background: transparent; | |
| color: var(--fg-2); | |
| display: grid; | |
| place-items: center; | |
| border-radius: 4px; | |
| transition: color 120ms, border-color 120ms, background 120ms; | |
| flex-shrink: 0; | |
| } | |
| .sb-toggle:hover { color: var(--fg-0); border-color: var(--line-3); background: var(--bg-2); } | |
| .sb-section-label { | |
| padding: 14px 14px 6px; | |
| font-size: 10px; | |
| letter-spacing: 0.12em; | |
| color: var(--fg-3); | |
| text-transform: uppercase; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } | |
| .sidebar.collapsed .sb-section-label { opacity: 0; height: 0; padding: 0; } | |
| .sb-nav { padding: 4px 6px; display: flex; flex-direction: column; gap: 1px; } | |
| .sb-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| height: 30px; | |
| padding: 0 8px; | |
| color: var(--fg-2); | |
| background: transparent; | |
| border: 0; | |
| text-align: left; | |
| width: 100%; | |
| border-radius: 4px; | |
| position: relative; | |
| transition: color 120ms, background 120ms; | |
| } | |
| .sb-item:hover { color: var(--fg-0); background: var(--bg-2); } | |
| .sb-item.active { color: var(--fg-0); background: var(--bg-2); } | |
| .sb-item.active::before { | |
| content: ""; | |
| position: absolute; | |
| left: -6px; | |
| top: 6px; | |
| bottom: 6px; | |
| width: 2px; | |
| background: var(--accent); | |
| border-radius: 0 2px 2px 0; | |
| } | |
| .sb-item .ico { width: 15px; height: 15px; flex-shrink: 0; } | |
| .sb-item .lbl { font-size: 12px; white-space: nowrap; overflow: hidden; flex: 1; } | |
| .sb-item .kbd { | |
| font-size: 10px; | |
| color: var(--fg-3); | |
| border: 1px solid var(--line-2); | |
| padding: 1px 5px; | |
| border-radius: 3px; | |
| background: var(--bg-0); | |
| } | |
| .sidebar.collapsed .sb-item .lbl, | |
| .sidebar.collapsed .sb-item .kbd { opacity: 0; pointer-events: none; width: 0; overflow: hidden; } | |
| .sidebar.collapsed .sb-item { justify-content: center; padding: 0; } | |
| .sb-foot { | |
| margin-top: auto; | |
| padding: 10px 12px; | |
| border-top: 1px solid var(--line-1); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| color: var(--fg-2); | |
| font-size: 11px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } | |
| .sb-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex-shrink: 0; } | |
| /* ββ Sidebar account / logout ββββββββββββββββββββββββββββββββββββ */ | |
| .sb-account { | |
| position: relative; | |
| padding: 6px 6px 10px; | |
| border-top: 1px solid var(--line-1); | |
| flex-shrink: 0; | |
| } | |
| .sb-account-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| width: 100%; | |
| height: 30px; | |
| padding: 0 8px; | |
| background: transparent; | |
| border: 0; | |
| border-radius: 4px; | |
| color: var(--fg-2); | |
| text-align: left; | |
| transition: color 120ms, background 120ms; | |
| } | |
| .sb-account-btn:hover { color: var(--fg-0); background: var(--bg-2); } | |
| .sb-account-btn .ico { width: 15px; height: 15px; flex-shrink: 0; } | |
| .sb-account-btn .lbl { font-size: 12px; white-space: nowrap; overflow: hidden; flex: 1; } | |
| .sidebar.collapsed .sb-account-btn { justify-content: center; padding: 0; } | |
| .sidebar.collapsed .sb-account-btn .lbl { opacity: 0; width: 0; overflow: hidden; } | |
| .sb-account-popup { | |
| position: absolute; | |
| bottom: calc(100% + 4px); | |
| left: 8px; | |
| right: 8px; | |
| background: var(--bg-2); | |
| border: 1px solid var(--line-2); | |
| border-radius: 6px; | |
| box-shadow: var(--shadow-md); | |
| overflow: hidden; | |
| z-index: 100; | |
| animation: popup-in 120ms ease; | |
| } | |
| .sidebar.collapsed .sb-account-popup { left: 4px; right: 4px; min-width: 140px; } | |
| @keyframes popup-in { | |
| from { opacity: 0; transform: translateY(4px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .sb-account-user { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 12px; | |
| font-size: 11.5px; | |
| color: var(--fg-2); | |
| } | |
| .sb-account-divider { | |
| height: 1px; | |
| background: var(--line-1); | |
| margin: 0 8px; | |
| } | |
| .sb-account-logout { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| width: 100%; | |
| padding: 8px 12px; | |
| background: transparent; | |
| border: 0; | |
| color: var(--fg-2); | |
| font-size: 12px; | |
| text-align: left; | |
| transition: color 120ms, background 120ms; | |
| cursor: pointer; | |
| } | |
| .sb-account-logout:hover { color: var(--err); background: var(--err-soft); } | |
| /* ββ Main area ββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .main { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| min-width: 0; | |
| min-height: 0; | |
| overflow: hidden; | |
| background: var(--bg-0); | |
| } | |
| /* ββ Topbar ββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .topbar { | |
| height: 48px; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 0 16px; | |
| border-bottom: 1px solid var(--line-1); | |
| background: var(--bg-1); | |
| flex-shrink: 0; | |
| } | |
| .crumb { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 12px; | |
| color: var(--fg-2); | |
| min-width: 0; | |
| } | |
| .crumb .sep { color: var(--fg-4); } | |
| .crumb .here { color: var(--fg-0); font-weight: 500; } | |
| .topbar .spacer { flex: 1; } | |
| /* Base URL input in topbar */ | |
| .url-input { | |
| display: flex; | |
| align-items: center; | |
| height: 28px; | |
| background: var(--bg-2); | |
| border: 1px solid var(--line-2); | |
| border-radius: 4px; | |
| padding: 0 0 0 8px; | |
| min-width: 300px; | |
| transition: border-color 120ms; | |
| } | |
| .url-input:focus-within { border-color: var(--accent-line); } | |
| .url-input .label { | |
| font-size: 10px; | |
| color: var(--fg-3); | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| padding-right: 8px; | |
| border-right: 1px solid var(--line-2); | |
| margin-right: 8px; | |
| white-space: nowrap; | |
| } | |
| .url-input input { | |
| background: transparent; | |
| border: 0; | |
| outline: 0; | |
| flex: 1; | |
| font-size: 12px; | |
| color: var(--fg-0); | |
| padding: 0 8px 0 0; | |
| height: 100%; | |
| min-width: 0; | |
| } | |
| .url-input input::placeholder { color: var(--fg-4); } | |
| /* Theme toggle */ | |
| .theme-toggle { | |
| display: inline-flex; | |
| align-items: center; | |
| background: var(--bg-2); | |
| border: 1px solid var(--line-2); | |
| border-radius: 4px; | |
| padding: 2px; | |
| height: 28px; | |
| } | |
| .theme-toggle button { | |
| height: 22px; | |
| padding: 0 8px; | |
| background: transparent; | |
| border: 0; | |
| color: var(--fg-2); | |
| font-size: 11px; | |
| border-radius: 3px; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 5px; | |
| transition: background 120ms, color 120ms; | |
| } | |
| .theme-toggle button:hover { color: var(--fg-0); } | |
| .theme-toggle button.on { background: var(--bg-0); color: var(--fg-0); box-shadow: var(--shadow-sm); } | |
| .theme-toggle .ico { width: 12px; height: 12px; } | |
| /* ββ Icon button βββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .ico-btn { | |
| width: 28px; | |
| height: 28px; | |
| display: grid; | |
| place-items: center; | |
| background: transparent; | |
| border: 1px solid var(--line-2); | |
| border-radius: 4px; | |
| color: var(--fg-2); | |
| transition: color 120ms, background 120ms, border-color 120ms; | |
| } | |
| .ico-btn:hover { color: var(--fg-0); background: var(--bg-2); border-color: var(--line-3); } | |
| /* ββ Buttons ββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .btn { | |
| height: 28px; | |
| padding: 0 12px; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| border-radius: 4px; | |
| border: 1px solid var(--line-2); | |
| background: var(--bg-1); | |
| color: var(--fg-0); | |
| font-size: 12px; | |
| font-weight: 500; | |
| transition: background 120ms, border-color 120ms, color 120ms; | |
| white-space: nowrap; | |
| } | |
| .btn:hover { background: var(--bg-2); border-color: var(--line-3); } | |
| .btn.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); } | |
| .btn.btn-primary:hover { filter: brightness(1.07); } | |
| .btn.btn-ghost { border-color: transparent; background: transparent; color: var(--fg-2); } | |
| .btn.btn-ghost:hover { color: var(--fg-0); background: var(--bg-2); } | |
| .btn:disabled { opacity: 0.5; cursor: not-allowed; } | |
| /* ββ Pills ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .pill { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 5px; | |
| height: 22px; | |
| padding: 0 8px; | |
| font-size: 10.5px; | |
| border-radius: 3px; | |
| border: 1px solid var(--line-2); | |
| background: var(--bg-2); | |
| color: var(--fg-1); | |
| white-space: nowrap; | |
| } | |
| .pill-ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; } | |
| .pill-warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; } | |
| .pill-err { color: var(--err); background: var(--err-soft); border-color: transparent; } | |
| .pill-acc { color: var(--accent); background: var(--accent-soft); border-color: transparent; } | |
| /* ββ HTTP method tags βββββββββββββββββββββββββββββββββββββββββββ */ | |
| .method { | |
| display: inline-block; | |
| font-size: 10px; | |
| font-weight: 700; | |
| letter-spacing: 0.04em; | |
| padding: 2px 5px; | |
| border-radius: 3px; | |
| line-height: 1.2; | |
| } | |
| .m-GET { background: rgba(79,140,255,0.16); color: #6ba1ff; } | |
| .m-POST { background: rgba(62,207,142,0.16); color: #3ecf8e; } | |
| .m-PUT { background: rgba(245,165,36,0.16); color: #f5a524; } | |
| .m-DELETE { background: rgba(245,96,74,0.16); color: #f5604a; } | |
| .m-PATCH { background: rgba(180,120,255,0.16); color: #b48aff; } | |
| html[data-theme="light"] .m-GET { background: #dbeafe; color: #1e40af; } | |
| html[data-theme="light"] .m-POST { background: #dcfce7; color: #166534; } | |
| html[data-theme="light"] .m-PUT { background: #fef3c7; color: #854d0e; } | |
| html[data-theme="light"] .m-DELETE { background: #fee2e2; color: #991b1b; } | |
| html[data-theme="light"] .m-PATCH { background: #ede9fe; color: #5b21b6; } | |
| /* ββ Page layout ββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .page { flex: 1; min-height: 0; overflow-y: auto; } | |
| .page-inner { max-width: 1180px; margin: 0 auto; padding: 28px 32px 56px; } | |
| .h-eyebrow { | |
| font-size: 10.5px; | |
| letter-spacing: 0.14em; | |
| color: var(--fg-3); | |
| text-transform: uppercase; | |
| } | |
| .h-title { font-size: 18px; letter-spacing: -0.01em; color: var(--fg-0); font-weight: 600; margin: 4px 0 0; } | |
| .h-sub { color: var(--fg-2); font-size: 12.5px; margin: 4px 0 0; } | |
| /* ββ Composer (scenario input box) βββββββββββββββββββββββββββββ */ | |
| .composer { | |
| background: var(--bg-1); | |
| border: 1px solid var(--line-2); | |
| border-radius: 6px; | |
| overflow: hidden; | |
| } | |
| .composer:focus-within { border-color: var(--accent-line); } | |
| .composer-head { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 10px 14px; | |
| border-bottom: 1px solid var(--line-1); | |
| background: var(--bg-2); | |
| font-size: 11px; | |
| color: var(--fg-2); | |
| } | |
| .composer-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; } | |
| .composer textarea { | |
| width: 100%; | |
| min-height: 80px; | |
| background: transparent; | |
| border: 0; | |
| outline: 0; | |
| padding: 14px; | |
| resize: none; | |
| font-size: 13px; | |
| color: var(--fg-0); | |
| font-family: var(--font-mono); | |
| } | |
| .composer textarea::placeholder { color: var(--fg-3); } | |
| .composer-foot { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 10px 8px 12px; | |
| border-top: 1px solid var(--line-1); | |
| background: var(--bg-1); | |
| } | |
| .composer-foot .hint { font-size: 11px; color: var(--fg-3); flex: 1; } | |
| .composer-foot .hint kbd { | |
| font-size: 10px; | |
| padding: 1px 5px; | |
| border: 1px solid var(--line-2); | |
| border-radius: 3px; | |
| color: var(--fg-2); | |
| background: var(--bg-2); | |
| margin: 0 2px; | |
| } | |
| /* ββ Chips ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .chips { display: flex; gap: 6px; flex-wrap: wrap; } | |
| .chip { | |
| height: 22px; | |
| padding: 0 10px; | |
| border: 1px solid var(--line-2); | |
| border-radius: 999px; | |
| background: var(--bg-2); | |
| color: var(--fg-2); | |
| font-size: 11px; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 4px; | |
| transition: color 120ms, border-color 120ms, background 120ms; | |
| white-space: nowrap; | |
| } | |
| .chip:hover { color: var(--fg-0); border-color: var(--line-3); background: var(--bg-3); } | |
| .chip.chip-on { border-color: var(--accent-line); color: var(--fg-0); background: var(--accent-soft); } | |
| /* ββ Plan / step cards ββββββββββββββββββββββββββββββββββββββββββ */ | |
| .plan-meta { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| margin: 22px 0 12px; | |
| flex-wrap: wrap; | |
| } | |
| .plan-meta .grow { flex: 1; } | |
| .progress { | |
| height: 4px; | |
| width: 160px; | |
| background: var(--bg-3); | |
| border-radius: 999px; | |
| overflow: hidden; | |
| border: 1px solid var(--line-1); | |
| } | |
| .progress > i { display: block; height: 100%; background: var(--accent); } | |
| .step { | |
| background: var(--bg-1); | |
| border: 1px solid var(--line-2); | |
| border-radius: 6px; | |
| margin-bottom: 8px; | |
| overflow: hidden; | |
| transition: border-color 160ms; | |
| } | |
| .step:hover { border-color: var(--line-3); } | |
| .step.is-running { border-color: var(--accent-line); } | |
| .step.is-ok { border-color: rgba(62,207,142,0.30); } | |
| .step.is-err { border-color: rgba(245,96,74,0.35); } | |
| html[data-theme="light"] .step.is-ok { border-color: rgba(22,163,74,0.30); } | |
| html[data-theme="light"] .step.is-err { border-color: rgba(220,38,38,0.30); } | |
| .step-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; } | |
| .step-num { | |
| width: 28px; | |
| height: 28px; | |
| border: 1px solid var(--line-2); | |
| border-radius: 4px; | |
| display: grid; | |
| place-items: center; | |
| font-size: 11px; | |
| font-weight: 700; | |
| color: var(--fg-1); | |
| background: var(--bg-2); | |
| flex-shrink: 0; | |
| } | |
| .step.is-ok .step-num { background: var(--ok-soft); color: var(--ok); border-color: transparent; } | |
| .step.is-err .step-num { background: var(--err-soft); color: var(--err); border-color: transparent; } | |
| .step.is-running .step-num { background: var(--accent-soft); color: var(--accent); border-color: transparent; } | |
| .step-main { flex: 1; min-width: 0; } | |
| .step-title { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-0); } | |
| .step-title .endpoint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .step-title .path { color: var(--fg-1); } | |
| .step-purpose { color: var(--fg-2); font-size: 11.5px; margin-top: 2px; } | |
| .step-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } | |
| .step-body { border-top: 1px solid var(--line-1); background: var(--bg-0); } | |
| .step-analysis { | |
| display: flex; | |
| gap: 10px; | |
| padding: 10px 14px; | |
| border-bottom: 1px solid var(--line-1); | |
| background: var(--bg-2); | |
| font-size: 12px; | |
| } | |
| .step-analysis .tag { | |
| flex-shrink: 0; | |
| color: var(--accent); | |
| font-size: 10px; | |
| letter-spacing: 0.1em; | |
| text-transform: uppercase; | |
| padding-top: 2px; | |
| } | |
| .step-analysis .body { color: var(--fg-1); flex: 1; line-height: 1.6; } | |
| .vars { margin-top: 8px; display: flex; gap: 5px; flex-wrap: wrap; } | |
| .var { | |
| font-size: 10.5px; | |
| background: var(--bg-1); | |
| border: 1px solid var(--line-2); | |
| padding: 2px 6px; | |
| border-radius: 3px; | |
| } | |
| .var .k { color: var(--accent); } | |
| .var .eq { color: var(--fg-3); margin: 0 2px; } | |
| .var .v { color: var(--fg-1); } | |
| .reqres { display: grid; grid-template-columns: 1fr 1fr; } | |
| .reqres > div { padding: 12px 14px; min-width: 0; } | |
| .reqres > div + div { border-left: 1px solid var(--line-1); } | |
| .rr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } | |
| .rr-head .lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); } | |
| .kv-block { | |
| background: var(--bg-1); | |
| border: 1px solid var(--line-1); | |
| border-radius: 4px; | |
| padding: 8px 10px; | |
| font-size: 11.5px; | |
| } | |
| .kv-label { | |
| margin-top: 8px; | |
| display: block; | |
| font-size: 9.5px; | |
| letter-spacing: 0.12em; | |
| text-transform: uppercase; | |
| color: var(--fg-3); | |
| margin-bottom: 4px; | |
| } | |
| .kv-row { display: flex; gap: 8px; padding: 1px 0; } | |
| .kv-row .k { color: var(--fg-3); flex-shrink: 0; } | |
| .kv-row .v { color: var(--fg-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| pre.code { | |
| margin: 0; | |
| background: var(--bg-1); | |
| border: 1px solid var(--line-1); | |
| border-radius: 4px; | |
| padding: 10px; | |
| font-size: 11.5px; | |
| color: var(--fg-1); | |
| overflow: auto; | |
| max-height: 280px; | |
| line-height: 1.55; | |
| white-space: pre; | |
| font-family: var(--font-mono); | |
| } | |
| pre.code .s { color: #6ba1ff; } | |
| pre.code .n { color: #f5a524; } | |
| pre.code .b { color: #b48aff; } | |
| pre.code .k { color: var(--fg-2); } | |
| html[data-theme="light"] pre.code .s { color: #1e40af; } | |
| html[data-theme="light"] pre.code .n { color: #b45309; } | |
| html[data-theme="light"] pre.code .b { color: #5b21b6; } | |
| /* ββ Toolbar / search bar βββββββββββββββββββββββββββββββββββββββ */ | |
| .col-toolbar { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| margin: 22px 0 16px; | |
| } | |
| .search { | |
| flex: 1; | |
| min-width: 0; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| height: 32px; | |
| padding: 0 12px; | |
| background: var(--bg-1); | |
| border: 1px solid var(--line-2); | |
| border-radius: 4px; | |
| transition: border-color 120ms; | |
| } | |
| .search:focus-within { border-color: var(--accent-line); } | |
| .search input { background: transparent; border: 0; outline: 0; flex: 1; min-width: 0; color: var(--fg-0); font-size: 12.5px; } | |
| .search input::placeholder { color: var(--fg-4); } | |
| .search .kbd { font-size: 10px; color: var(--fg-3); border: 1px solid var(--line-2); padding: 1px 5px; border-radius: 3px; background: var(--bg-2); } | |
| /* ββ Cards grid βββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; } | |
| .col-card { | |
| background: var(--bg-1); | |
| border: 1px solid var(--line-2); | |
| border-radius: 6px; | |
| padding: 14px; | |
| cursor: pointer; | |
| transition: border-color 140ms, background 140ms; | |
| position: relative; | |
| } | |
| .col-card:hover { border-color: var(--line-3); background: var(--bg-2); } | |
| .col-card.active { border-color: var(--accent-line); background: var(--accent-soft); } | |
| .col-card.active::after { | |
| content: ""; | |
| position: absolute; | |
| left: 0; | |
| top: 14px; | |
| bottom: 14px; | |
| width: 2px; | |
| background: var(--accent); | |
| border-radius: 0 2px 2px 0; | |
| } | |
| .col-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } | |
| .col-card h3 { margin: 0; font-size: 13px; color: var(--fg-0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .col-card .meta { | |
| display: flex; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| font-size: 11px; | |
| color: var(--fg-2); | |
| padding-top: 10px; | |
| border-top: 1px solid var(--line-1); | |
| margin-top: 10px; | |
| } | |
| .col-card .id { font-size: 10.5px; color: var(--fg-3); } | |
| /* ββ Panel (used in Profile, Settings, History) βββββββββββββββββ */ | |
| .panel { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; } | |
| .panel-head { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 10px 14px; | |
| border-bottom: 1px solid var(--line-1); | |
| font-size: 12px; | |
| color: var(--fg-1); | |
| background: var(--bg-2); | |
| } | |
| .panel-head .grow { flex: 1; } | |
| .panel-body { padding: 14px; } | |
| /* ββ Form fields ββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .field { display: grid; gap: 6px; margin-bottom: 12px; } | |
| .field label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); } | |
| .input { | |
| height: 32px; | |
| padding: 0 10px; | |
| background: var(--bg-0); | |
| border: 1px solid var(--line-2); | |
| border-radius: 4px; | |
| color: var(--fg-0); | |
| font-size: 12.5px; | |
| outline: none; | |
| transition: border-color 120ms; | |
| width: 100%; | |
| font-family: var(--font-mono); | |
| } | |
| .input:focus { border-color: var(--accent-line); } | |
| .input::placeholder { color: var(--fg-4); } | |
| .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } | |
| @media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } } | |
| .kv-editor { display: flex; flex-direction: column; gap: 6px; } | |
| /* ββ Token strip ββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .tokstrip { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| height: 22px; | |
| padding: 0 8px; | |
| background: var(--bg-2); | |
| border: 1px solid var(--line-2); | |
| border-radius: 3px; | |
| font-size: 10.5px; | |
| color: var(--fg-2); | |
| white-space: nowrap; | |
| } | |
| .tokstrip b { color: var(--fg-0); font-weight: 600; } | |
| .tokstrip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; } | |
| /* ββ Utility helpers ββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .row { display: flex; align-items: center; gap: 8px; } | |
| .grow { flex: 1; } | |
| .mb-2 { margin-bottom: 12px; } | |
| .mb-3 { margin-bottom: 18px; } | |
| .mb-4 { margin-bottom: 24px; } | |
| .mt-2 { margin-top: 12px; } | |
| .mt-3 { margin-top: 18px; } | |
| .text-dim { color: var(--fg-2); } | |
| .text-faint { color: var(--fg-3); } | |
| .strong { color: var(--fg-0); font-weight: 600; } | |
| /* ββ Legacy animation helpers (used by existing components) βββββ */ | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| @keyframes shimmer { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } } | |
| @keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 6px transparent; } } | |
| .animate-shimmer { animation: shimmer 2.5s ease-in-out infinite; } | |
| .animate-pulse-glow { animation: pulse-glow 2s ease-out infinite; } | |
| /* ββ btn-primary gradient (used by existing Tailwind components) β */ | |
| .btn-primary { | |
| background: var(--accent-gradient); | |
| position: relative; | |
| overflow: hidden; | |
| transition: all 180ms ease; | |
| } | |
| .btn-primary::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%); | |
| opacity: 0; | |
| transition: opacity 180ms ease; | |
| } | |
| .btn-primary:hover:not(:disabled)::before { opacity: 1; } | |
| .btn-primary:active:not(:disabled) { transform: scale(0.98); } | |
| /* ββ Step card hover (Tailwind-based workflow steps) ββββββββββββ */ | |
| .step-card { transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; } | |
| .step-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); } | |