Download static/css/panel.css from ItsBounvy/bot_host: direct link, hf CLI and curl.
- Browser
- Download file 60.9 kB
-
https://huggingface.co/spaces/ItsBounvy/bot_host/resolve/main/static/css/panel.css
- Command line
-
hf download hf://spaces/ItsBounvy/bot_host/static/css/panel.css
-
curl -L -o panel.css https://huggingface.co/spaces/ItsBounvy/bot_host/resolve/main/static/css/panel.css
60.9 kB
| /* ============================================================ | |
| MMaxAI Hosting Panel — Design System & Components | |
| ------------------------------------------------------------ | |
| Single source of truth for color, spacing, typography, and | |
| reusable UI primitives. Themes are swapped via [data-theme] | |
| on the <html> root (light | dark). The "default" theme is | |
| dark because that's what we ship on; users can toggle. | |
| ============================================================ */ | |
| /* ---------------------------------------------------------------- | |
| Tokens — dark (default) | |
| ---------------------------------------------------------------- */ | |
| :root, | |
| :root[data-theme="dark"] { | |
| /* Surfaces */ | |
| --bg: #0b1020; | |
| --bg-elev-1: #111733; | |
| --bg-elev-2: #1a2147; | |
| --surface: #131a36; | |
| --surface-hover: #1b2349; | |
| --surface-2: #232c5a; | |
| --border: #2a335e; | |
| --border-strong: #3a4584; | |
| /* Text */ | |
| --text: #e6e9f5; | |
| --text-muted: #8a93b8; | |
| --text-faint: #5b6391; | |
| --text-on-accent: #ffffff; | |
| /* Accents */ | |
| --primary: #6366f1; /* indigo-500 */ | |
| --primary-hover: #818cf8; | |
| --primary-soft: rgba(99, 102, 241, 0.15); | |
| --accent-2: #06b6d4; /* cyan-500 — secondary accent */ | |
| --success: #10b981; | |
| --success-soft: rgba(16, 185, 129, 0.16); | |
| --warning: #f59e0b; | |
| --warning-soft: rgba(245, 158, 11, 0.16); | |
| --error: #ef4444; | |
| --error-soft: rgba(239, 68, 68, 0.16); | |
| --info: #3b82f6; | |
| --info-soft: rgba(59, 130, 246, 0.16); | |
| /* Status palette (bots) */ | |
| --status-pending: var(--warning); | |
| --status-building: var(--info); | |
| --status-running: var(--success); | |
| --status-stopped: var(--text-muted); | |
| --status-error: var(--error); | |
| --status-sleeping: var(--accent-2); | |
| /* Effects */ | |
| --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25); | |
| --shadow: 0 4px 14px rgba(0, 0, 0, 0.35); | |
| --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45); | |
| --ring: 0 0 0 3px rgba(99, 102, 241, 0.35); | |
| --gradient-bg: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,0.20), transparent 60%), | |
| radial-gradient(900px 500px at 110% 10%, rgba(6,182,212,0.15), transparent 60%), | |
| linear-gradient(180deg, #0b1020 0%, #0a0e1c 100%); | |
| /* Geometry */ | |
| --radius: 10px; | |
| --radius-sm: 6px; | |
| --radius-lg: 14px; | |
| --radius-pill: 999px; | |
| --sidebar-w: 248px; | |
| --topbar-h: 64px; | |
| /* Type */ | |
| --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |
| --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace; | |
| /* Motion */ | |
| --ease: cubic-bezier(0.4, 0, 0.2, 1); | |
| --t-fast: 120ms; | |
| --t-med: 200ms; | |
| } | |
| /* ---------------------------------------------------------------- | |
| Tokens — light | |
| ---------------------------------------------------------------- */ | |
| :root[data-theme="light"] { | |
| --bg: #f4f6fb; | |
| --bg-elev-1: #ffffff; | |
| --bg-elev-2: #f0f3fa; | |
| --surface: #ffffff; | |
| --surface-hover: #f5f7fc; | |
| --surface-2: #eef1f8; | |
| --border: #dfe3ee; | |
| --border-strong: #c4cbdb; | |
| --text: #0f172a; | |
| --text-muted: #54607a; | |
| --text-faint: #8b95ad; | |
| --text-on-accent: #ffffff; | |
| --primary: #4f46e5; | |
| --primary-hover: #4338ca; | |
| --primary-soft: rgba(79, 70, 229, 0.10); | |
| --accent-2: #0891b2; | |
| --success: #059669; | |
| --success-soft: rgba(5, 150, 105, 0.12); | |
| --warning: #d97706; | |
| --warning-soft: rgba(217, 119, 6, 0.12); | |
| --error: #dc2626; | |
| --error-soft: rgba(220, 38, 38, 0.10); | |
| --info: #2563eb; | |
| --info-soft: rgba(37, 99, 235, 0.10); | |
| --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06); | |
| --shadow: 0 4px 18px rgba(15, 23, 42, 0.08); | |
| --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.14); | |
| --ring: 0 0 0 3px rgba(79, 70, 229, 0.20); | |
| --gradient-bg: radial-gradient(900px 500px at 0% 0%, rgba(79,70,229,0.08), transparent 60%), | |
| radial-gradient(800px 400px at 100% 0%, rgba(8,145,178,0.06), transparent 60%), | |
| linear-gradient(180deg, #f4f6fb 0%, #eef1f8 100%); | |
| } | |
| /* ---------------------------------------------------------------- | |
| Reset & base | |
| ---------------------------------------------------------------- */ | |
| *, *::before, *::after { box-sizing: border-box; } | |
| html, body { | |
| margin: 0; | |
| padding: 0; | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: var(--font); | |
| font-size: 14.5px; | |
| line-height: 1.55; | |
| min-height: 100vh; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| body.has-gradient { background: var(--gradient-bg); background-attachment: fixed; } | |
| a { color: var(--primary); text-decoration: none; transition: color var(--t-fast) var(--ease); } | |
| a:hover { color: var(--primary-hover); } | |
| code, pre { | |
| font-family: var(--font-mono); | |
| font-size: 0.86em; | |
| } | |
| code { | |
| background: var(--surface-2); | |
| padding: 2px 7px; | |
| border-radius: var(--radius-sm); | |
| color: var(--text); | |
| } | |
| pre { | |
| background: var(--surface-2); | |
| padding: 12px 14px; | |
| border-radius: var(--radius); | |
| overflow-x: auto; | |
| margin: 0; | |
| } | |
| hr { | |
| border: 0; | |
| border-top: 1px solid var(--border); | |
| margin: 16px 0; | |
| } | |
| ::selection { background: var(--primary-soft); color: var(--text); } | |
| ::-webkit-scrollbar { width: 10px; height: 10px; } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--border-strong); | |
| border-radius: 999px; | |
| border: 2px solid var(--bg); | |
| } | |
| ::-webkit-scrollbar-thumb:hover { background: var(--text-faint); } | |
| ::-webkit-scrollbar-track { background: transparent; } | |
| /* ---------------------------------------------------------------- | |
| Layout | |
| ---------------------------------------------------------------- */ | |
| .app { display: flex; min-height: 100vh; } | |
| .sidebar { | |
| width: var(--sidebar-w); | |
| background: var(--surface); | |
| border-right: 1px solid var(--border); | |
| display: flex; | |
| flex-direction: column; | |
| position: fixed; | |
| inset: 0 auto 0 0; | |
| z-index: 30; | |
| transition: transform var(--t-med) var(--ease); | |
| } | |
| .sidebar-header { | |
| padding: 18px 18px 14px; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| border-bottom: 1px solid var(--border); | |
| height: var(--topbar-h); | |
| } | |
| .sidebar-header .logo { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 10px; | |
| background: linear-gradient(135deg, var(--primary), var(--accent-2)); | |
| display: grid; | |
| place-items: center; | |
| color: #fff; | |
| font-weight: 800; | |
| font-size: 16px; | |
| box-shadow: 0 6px 18px rgba(99,102,241,0.35); | |
| } | |
| .sidebar-header .brand { | |
| font-size: 16px; | |
| font-weight: 700; | |
| letter-spacing: 0.01em; | |
| } | |
| .sidebar-header .brand-sub { | |
| font-size: 11px; | |
| color: var(--text-muted); | |
| margin-top: 2px; | |
| } | |
| .sidebar-nav { flex: 1; padding: 14px 10px; overflow-y: auto; } | |
| .nav-section { | |
| padding: 14px 12px 6px; | |
| font-size: 10.5px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.10em; | |
| color: var(--text-faint); | |
| font-weight: 700; | |
| } | |
| .nav-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 11px; | |
| padding: 9px 12px; | |
| margin: 2px 0; | |
| border-radius: var(--radius); | |
| color: var(--text-muted); | |
| font-size: 14px; | |
| font-weight: 500; | |
| transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); | |
| border: 1px solid transparent; | |
| } | |
| .nav-item:hover { background: var(--surface-hover); color: var(--text); } | |
| .nav-item.active { | |
| background: var(--primary-soft); | |
| color: var(--text); | |
| border-color: var(--primary-soft); | |
| } | |
| .nav-item.active .nav-icon { color: var(--primary); } | |
| .nav-item .nav-icon { | |
| width: 18px; | |
| height: 18px; | |
| flex: 0 0 18px; | |
| color: var(--text-faint); | |
| transition: color var(--t-fast) var(--ease); | |
| } | |
| .nav-item:hover .nav-icon { color: var(--text); } | |
| .nav-item.danger { color: var(--error); } | |
| .nav-item.danger .nav-icon { color: var(--error); } | |
| .sidebar-footer { | |
| padding: 12px 10px; | |
| border-top: 1px solid var(--border); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .sidebar-footer .user-chip { | |
| flex: 1; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 8px 10px; | |
| border-radius: var(--radius); | |
| background: var(--surface-hover); | |
| text-decoration: none; | |
| color: var(--text); | |
| min-width: 0; | |
| } | |
| .sidebar-footer .avatar { | |
| width: 30px; height: 30px; | |
| border-radius: 50%; | |
| background: linear-gradient(135deg, var(--primary), var(--accent-2)); | |
| display: grid; place-items: center; | |
| color: #fff; font-weight: 700; font-size: 13px; | |
| flex: 0 0 30px; | |
| } | |
| .sidebar-footer .user-meta { min-width: 0; } | |
| .sidebar-footer .user-meta .name { | |
| font-size: 13px; font-weight: 600; | |
| white-space: nowrap; overflow: hidden; text-overflow: ellipsis; | |
| } | |
| .sidebar-footer .user-meta .role { | |
| font-size: 11px; color: var(--text-muted); | |
| text-transform: capitalize; | |
| } | |
| .main { | |
| flex: 1; | |
| margin-left: var(--sidebar-w); | |
| display: flex; | |
| flex-direction: column; | |
| min-width: 0; | |
| } | |
| .main.full { margin-left: 0; } | |
| .topbar { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| padding: 0 22px; | |
| height: var(--topbar-h); | |
| background: var(--surface); | |
| border-bottom: 1px solid var(--border); | |
| position: sticky; | |
| top: 0; | |
| z-index: 20; | |
| backdrop-filter: saturate(150%) blur(8px); | |
| } | |
| .topbar .crumbs { | |
| flex: 1; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 14px; | |
| color: var(--text-muted); | |
| min-width: 0; | |
| } | |
| .topbar .crumbs h1 { | |
| margin: 0; | |
| font-size: 16px; | |
| color: var(--text); | |
| font-weight: 600; | |
| } | |
| .topbar .crumbs .sep { color: var(--text-faint); } | |
| .topbar .crumbs .parent { color: var(--text-muted); } | |
| .topbar .crumbs .parent:hover { color: var(--text); } | |
| .topbar .topbar-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .icon-btn { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: var(--radius); | |
| background: transparent; | |
| color: var(--text-muted); | |
| border: 1px solid transparent; | |
| display: grid; | |
| place-items: center; | |
| cursor: pointer; | |
| transition: all var(--t-fast) var(--ease); | |
| } | |
| .icon-btn:hover { background: var(--surface-hover); color: var(--text); } | |
| .icon-btn svg { width: 18px; height: 18px; } | |
| .menu-toggle { | |
| display: none; | |
| } | |
| .content { | |
| padding: 22px; | |
| max-width: 1400px; | |
| width: 100%; | |
| flex: 1; | |
| } | |
| /* ---------------------------------------------------------------- | |
| Page header & breadcrumbs | |
| ---------------------------------------------------------------- */ | |
| .page-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-end; | |
| gap: 16px; | |
| margin-bottom: 22px; | |
| flex-wrap: wrap; | |
| } | |
| .page-header h1 { | |
| margin: 0; | |
| font-size: 24px; | |
| font-weight: 700; | |
| letter-spacing: -0.01em; | |
| } | |
| .page-header .subtitle { | |
| margin-top: 4px; | |
| color: var(--text-muted); | |
| font-size: 14px; | |
| } | |
| .page-header .actions { display: flex; gap: 8px; flex-wrap: wrap; } | |
| /* ---------------------------------------------------------------- | |
| Cards | |
| ---------------------------------------------------------------- */ | |
| .card { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| margin-bottom: 18px; | |
| overflow: hidden; | |
| box-shadow: var(--shadow-sm); | |
| transition: box-shadow var(--t-fast) var(--ease); | |
| } | |
| .card:hover { box-shadow: var(--shadow); } | |
| .card.flush { padding: 0; } | |
| .card-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 14px 18px; | |
| border-bottom: 1px solid var(--border); | |
| gap: 12px; | |
| } | |
| .card-header h2 { | |
| margin: 0; | |
| font-size: 14px; | |
| font-weight: 600; | |
| letter-spacing: 0.01em; | |
| } | |
| .card-header .desc { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; } | |
| .card-body { padding: 18px; } | |
| .card-body.tight { padding: 12px 16px; } | |
| .card.elevated { | |
| background: var(--bg-elev-1); | |
| border-color: var(--border); | |
| } | |
| /* ---------------------------------------------------------------- | |
| Buttons | |
| ---------------------------------------------------------------- */ | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 6px; | |
| padding: 8px 14px; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| background: var(--surface-2); | |
| color: var(--text); | |
| font: inherit; | |
| font-size: 13.5px; | |
| font-weight: 500; | |
| line-height: 1.2; | |
| cursor: pointer; | |
| transition: all var(--t-fast) var(--ease); | |
| text-decoration: none; | |
| white-space: nowrap; | |
| } | |
| .btn:hover { background: var(--surface-hover); border-color: var(--border-strong); } | |
| .btn:focus-visible { outline: none; box-shadow: var(--ring); } | |
| .btn:disabled, | |
| .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; } | |
| .btn svg { width: 14px; height: 14px; } | |
| .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--text-on-accent); } | |
| .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); } | |
| .btn-success { background: var(--success); border-color: var(--success); color: var(--text-on-accent); } | |
| .btn-warning { background: var(--warning); border-color: var(--warning); color: #1a1300; } | |
| .btn-danger { background: var(--error); border-color: var(--error); color: var(--text-on-accent); } | |
| .btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); } | |
| .btn-ghost:hover { background: var(--surface-hover); color: var(--text); } | |
| .btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); } | |
| .btn-outline:hover { background: var(--surface-hover); } | |
| .btn-block { width: 100%; } | |
| .btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; } | |
| .btn-lg { padding: 11px 18px; font-size: 15px; } | |
| .btn .spinner { | |
| width: 14px; height: 14px; | |
| border: 2px solid currentColor; | |
| border-right-color: transparent; | |
| border-radius: 50%; | |
| animation: spin 0.8s linear infinite; | |
| } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| /* ---------------------------------------------------------------- | |
| Forms | |
| ---------------------------------------------------------------- */ | |
| .form-grid { display: grid; gap: 26px; } | |
| .form-section { display: grid; gap: 14px; } | |
| .form-section-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 12px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| color: var(--text-muted); | |
| font-weight: 700; | |
| margin: 4px 0 -4px; | |
| } | |
| .form-section-title .ico { | |
| width: 24px; height: 24px; | |
| border-radius: 6px; | |
| background: var(--primary-soft); | |
| color: var(--primary); | |
| display: grid; place-items: center; | |
| } | |
| .form-section-title .ico svg { width: 14px; height: 14px; } | |
| .form-group { margin-bottom: 4px; } | |
| .form-group label { | |
| display: block; | |
| margin-bottom: 6px; | |
| font-size: 12.5px; | |
| font-weight: 600; | |
| color: var(--text-muted); | |
| letter-spacing: 0.01em; | |
| } | |
| .form-group label .req { color: var(--error); margin-left: 2px; } | |
| .form-group .help { | |
| display: block; | |
| margin-top: 5px; | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| line-height: 1.4; | |
| } | |
| .form-group .help a { color: var(--primary); } | |
| .input, | |
| input[type="text"], | |
| input[type="email"], | |
| input[type="password"], | |
| input[type="url"], | |
| input[type="number"], | |
| input[type="search"], | |
| textarea, | |
| select { | |
| width: 100%; | |
| padding: 10px 12px; | |
| background: var(--bg); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| color: var(--text); | |
| font: inherit; | |
| font-size: 14px; | |
| line-height: 1.4; | |
| transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); | |
| } | |
| textarea { font-family: var(--font-mono); font-size: 13px; resize: vertical; min-height: 96px; } | |
| .input:focus, | |
| input:focus, | |
| textarea:focus, | |
| select:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| box-shadow: var(--ring); | |
| } | |
| .input.is-invalid, | |
| input.is-invalid { border-color: var(--error); } | |
| .input.is-invalid:focus { box-shadow: 0 0 0 3px var(--error-soft); } | |
| .input-with-action { | |
| position: relative; | |
| display: flex; | |
| gap: 8px; | |
| align-items: stretch; | |
| } | |
| .input-with-action .input, | |
| .input-with-action input { padding-right: 38px; } | |
| .input-with-action .input-action { | |
| position: absolute; | |
| right: 6px; top: 50%; | |
| transform: translateY(-50%); | |
| width: 28px; height: 28px; | |
| display: grid; place-items: center; | |
| background: transparent; | |
| border: 0; | |
| color: var(--text-muted); | |
| border-radius: 6px; | |
| cursor: pointer; | |
| } | |
| .input-with-action .input-action:hover { background: var(--surface-hover); color: var(--text); } | |
| .input-with-action .input-action svg { width: 16px; height: 16px; } | |
| /* Pressed state — when the toggle is currently showing plaintext. */ | |
| .input-with-action .input-action[aria-pressed="true"] { | |
| background: var(--primary-soft); | |
| color: var(--primary); | |
| } | |
| /* Caps-Lock hint shown under password field when Caps is on. */ | |
| .caps-warn { | |
| margin-top: 6px; | |
| font-size: 12px; | |
| color: var(--warning, #f59e0b); | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| /* The HTML `hidden` attribute sets display:none, but our explicit | |
| ``display: flex`` above would override it — so re-assert hidden | |
| in CSS so the warning is actually invisible by default. */ | |
| .caps-warn[hidden] { display: none; } | |
| /* Belt-and-suspenders for any element relying on `hidden`. */ | |
| [hidden] { display: none ; } | |
| /* "Remember me / forgot password" row. */ | |
| .form-row-between { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin: 4px 0 14px 0; | |
| font-size: 13px; | |
| } | |
| .checkbox { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| color: var(--text-2); | |
| cursor: pointer; | |
| user-select: none; | |
| } | |
| .checkbox input { margin: 0; } | |
| .link-muted { | |
| color: var(--text-muted); | |
| text-decoration: none; | |
| } | |
| .link-muted:hover { color: var(--primary); text-decoration: underline; } | |
| /* Submit button loading state. */ | |
| .btn[disabled], | |
| .btn.is-loading { | |
| opacity: 0.7; | |
| cursor: progress; | |
| pointer-events: none; | |
| } | |
| .form-actions { | |
| display: flex; | |
| gap: 10px; | |
| padding-top: 14px; | |
| margin-top: 4px; | |
| border-top: 1px solid var(--border); | |
| } | |
| .form-row { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | |
| gap: 14px; | |
| } | |
| /* checkbox */ | |
| .check { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| cursor: pointer; | |
| user-select: none; | |
| font-size: 13.5px; | |
| } | |
| .check input { width: 16px; height: 16px; accent-color: var(--primary); } | |
| /* ---------------------------------------------------------------- | |
| Badges | |
| ---------------------------------------------------------------- */ | |
| .badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 3px 10px; | |
| border-radius: var(--radius-pill); | |
| font-size: 11.5px; | |
| font-weight: 600; | |
| text-transform: capitalize; | |
| letter-spacing: 0.02em; | |
| border: 1px solid transparent; | |
| } | |
| .badge .dot { | |
| width: 6px; height: 6px; border-radius: 50%; | |
| background: currentColor; | |
| } | |
| .badge.status-pending { background: var(--warning-soft); color: var(--warning); border-color: rgba(245,158,11,0.25); } | |
| .badge.status-building { background: var(--info-soft); color: var(--info); border-color: rgba(59,130,246,0.25); } | |
| .badge.status-running { background: var(--success-soft); color: var(--success); border-color: rgba(16,185,129,0.25); } | |
| .badge.status-stopped { background: var(--surface-2); color: var(--text-muted); } | |
| .badge.status-error { background: var(--error-soft); color: var(--error); border-color: rgba(239,68,68,0.25); } | |
| .badge.status-sleeping { background: rgba(6,182,212,0.12); color: var(--accent-2); border-color: rgba(6,182,212,0.25); } | |
| .badge.status-success { background: var(--success-soft); color: var(--success); } | |
| .badge.status-failed { background: var(--error-soft); color: var(--error); } | |
| .badge.role-admin { background: var(--primary-soft); color: var(--primary); } | |
| .badge.role-operator { background: var(--info-soft); color: var(--info); } | |
| .badge.role-viewer { background: var(--surface-2); color: var(--text-muted); } | |
| /* pulsing live indicator */ | |
| .live-dot { | |
| display: inline-block; | |
| width: 8px; height: 8px; | |
| border-radius: 50%; | |
| background: var(--success); | |
| box-shadow: 0 0 0 0 var(--success-soft); | |
| animation: pulse 1.8s var(--ease) infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { box-shadow: 0 0 0 0 var(--success-soft); } | |
| 70% { box-shadow: 0 0 0 8px transparent; } | |
| 100% { box-shadow: 0 0 0 0 transparent; } | |
| } | |
| /* ---------------------------------------------------------------- | |
| Alerts | |
| ---------------------------------------------------------------- */ | |
| .alert { | |
| display: flex; | |
| gap: 10px; | |
| align-items: flex-start; | |
| padding: 12px 14px; | |
| border-radius: var(--radius); | |
| margin-bottom: 16px; | |
| font-size: 13.5px; | |
| border: 1px solid var(--border); | |
| background: var(--surface-2); | |
| } | |
| .alert > .ico { | |
| width: 18px; height: 18px; | |
| flex: 0 0 18px; | |
| margin-top: 2px; | |
| } | |
| .alert > .ico svg { width: 18px; height: 18px; } | |
| .alert .alert-body { flex: 1; } | |
| .alert .alert-title { font-weight: 600; margin-bottom: 2px; } | |
| .alert-error { background: var(--error-soft); border-color: rgba(239,68,68,0.30); color: var(--text); } | |
| .alert-error > .ico { color: var(--error); } | |
| .alert-warning { background: var(--warning-soft); border-color: rgba(245,158,11,0.30); color: var(--text); } | |
| .alert-warning > .ico { color: var(--warning); } | |
| .alert-success { background: var(--success-soft); border-color: rgba(16,185,129,0.30); color: var(--text); } | |
| .alert-success > .ico { color: var(--success); } | |
| .alert-info { background: var(--info-soft); border-color: rgba(59,130,246,0.30); color: var(--text); } | |
| .alert-info > .ico { color: var(--info); } | |
| /* ---------------------------------------------------------------- | |
| Stats | |
| ---------------------------------------------------------------- */ | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 14px; | |
| margin-bottom: 22px; | |
| } | |
| .stat-card { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| padding: 16px 18px; | |
| position: relative; | |
| overflow: hidden; | |
| transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); | |
| } | |
| .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } | |
| .stat-card::after { | |
| content: ""; | |
| position: absolute; | |
| inset: 0; | |
| pointer-events: none; | |
| background: radial-gradient(80% 50% at 100% 0%, var(--accent-bar, var(--primary-soft)), transparent 70%); | |
| opacity: 0.4; | |
| } | |
| .stat-card .stat-label { | |
| font-size: 11.5px; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| font-weight: 600; | |
| margin-bottom: 6px; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .stat-card .stat-value { | |
| font-size: 28px; | |
| font-weight: 700; | |
| letter-spacing: -0.02em; | |
| } | |
| .stat-card .stat-foot { | |
| margin-top: 8px; | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| } | |
| .stat-card.tone-primary { --accent-bar: var(--primary-soft); } | |
| .stat-card.tone-success { --accent-bar: var(--success-soft); } | |
| .stat-card.tone-success .stat-value { color: var(--success); } | |
| .stat-card.tone-warning { --accent-bar: var(--warning-soft); } | |
| .stat-card.tone-warning .stat-value { color: var(--warning); } | |
| .stat-card.tone-error { --accent-bar: var(--error-soft); } | |
| .stat-card.tone-error .stat-value { color: var(--error); } | |
| .stat-card.tone-accent { --accent-bar: rgba(6,182,212,0.18); } | |
| .stat-card.tone-accent .stat-value { color: var(--accent-2); } | |
| /* ---------------------------------------------------------------- | |
| Tables | |
| ---------------------------------------------------------------- */ | |
| .table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); } | |
| .table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: 13.5px; | |
| } | |
| .table th, .table td { | |
| padding: 11px 14px; | |
| text-align: left; | |
| border-bottom: 1px solid var(--border); | |
| vertical-align: middle; | |
| } | |
| .table thead th { | |
| font-size: 11px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.06em; | |
| color: var(--text-muted); | |
| font-weight: 700; | |
| background: var(--surface-2); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .table tbody tr { | |
| transition: background var(--t-fast) var(--ease); | |
| } | |
| .table tbody tr:hover { background: var(--surface-hover); } | |
| .table tbody tr:last-child td { border-bottom: 0; } | |
| .table td.muted, .table .muted { color: var(--text-muted); } | |
| .table .actions-cell { text-align: right; white-space: nowrap; } | |
| .table .row-actions { | |
| display: inline-flex; | |
| gap: 6px; | |
| opacity: 0.7; | |
| transition: opacity var(--t-fast) var(--ease); | |
| } | |
| .table tr:hover .row-actions { opacity: 1; } | |
| .table-empty { | |
| padding: 40px 20px; | |
| text-align: center; | |
| color: var(--text-muted); | |
| } | |
| /* ---------------------------------------------------------------- | |
| Detail rows | |
| ---------------------------------------------------------------- */ | |
| .detail-list { display: grid; gap: 0; } | |
| .detail-row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| gap: 16px; | |
| padding: 11px 0; | |
| border-bottom: 1px dashed var(--border); | |
| } | |
| .detail-row:last-child { border-bottom: 0; } | |
| .detail-row .label { | |
| color: var(--text-muted); | |
| font-size: 12.5px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.06em; | |
| font-weight: 600; | |
| flex: 0 0 auto; | |
| } | |
| .detail-row .value { | |
| font-weight: 500; | |
| text-align: right; | |
| word-break: break-all; | |
| color: var(--text); | |
| font-size: 14px; | |
| } | |
| .detail-row .value a { color: var(--primary); } | |
| /* ---------------------------------------------------------------- | |
| Empty state | |
| ---------------------------------------------------------------- */ | |
| .empty-state { | |
| text-align: center; | |
| padding: 60px 20px; | |
| color: var(--text-muted); | |
| } | |
| .empty-state .ico { | |
| width: 56px; height: 56px; | |
| margin: 0 auto 14px; | |
| border-radius: 16px; | |
| background: var(--primary-soft); | |
| color: var(--primary); | |
| display: grid; place-items: center; | |
| } | |
| .empty-state .ico svg { width: 28px; height: 28px; } | |
| .empty-state h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); } | |
| .empty-state p { margin: 0 0 16px; font-size: 13.5px; } | |
| /* ---------------------------------------------------------------- | |
| Tabs | |
| ---------------------------------------------------------------- */ | |
| .tabs { | |
| display: flex; | |
| gap: 4px; | |
| border-bottom: 1px solid var(--border); | |
| margin-bottom: 18px; | |
| overflow-x: auto; | |
| scrollbar-width: thin; | |
| } | |
| .tab { | |
| padding: 10px 14px; | |
| background: transparent; | |
| border: 0; | |
| color: var(--text-muted); | |
| font: inherit; | |
| font-size: 13.5px; | |
| font-weight: 500; | |
| cursor: pointer; | |
| position: relative; | |
| border-radius: var(--radius) var(--radius) 0 0; | |
| transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); | |
| white-space: nowrap; | |
| } | |
| .tab:hover { color: var(--text); background: var(--surface-hover); } | |
| .tab.active { color: var(--primary); } | |
| .tab.active::after { | |
| content: ""; | |
| position: absolute; | |
| left: 8px; right: 8px; bottom: -1px; | |
| height: 2px; | |
| border-radius: 2px; | |
| background: var(--primary); | |
| } | |
| .tab .count { | |
| margin-left: 6px; | |
| padding: 1px 7px; | |
| background: var(--surface-2); | |
| color: var(--text-muted); | |
| border-radius: var(--radius-pill); | |
| font-size: 11px; | |
| font-weight: 600; | |
| } | |
| .tab.active .count { background: var(--primary-soft); color: var(--primary); } | |
| .tab-panel { display: none; } | |
| .tab-panel.active { display: block; animation: fadeUp var(--t-med) var(--ease); } | |
| @keyframes fadeUp { | |
| from { opacity: 0; transform: translateY(4px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* ---------------------------------------------------------------- | |
| Toolbar (filter + search above tables) | |
| ---------------------------------------------------------------- */ | |
| .toolbar { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| align-items: center; | |
| margin-bottom: 14px; | |
| } | |
| .toolbar .search { | |
| position: relative; | |
| flex: 1; | |
| min-width: 220px; | |
| max-width: 360px; | |
| } | |
| .toolbar .search input { padding-left: 36px; } | |
| .toolbar .search .ico { | |
| position: absolute; | |
| left: 12px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| width: 16px; height: 16px; | |
| color: var(--text-faint); | |
| pointer-events: none; | |
| } | |
| .toolbar .filter-chips { | |
| display: flex; | |
| gap: 6px; | |
| flex-wrap: wrap; | |
| } | |
| .chip { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 5px 11px; | |
| border-radius: var(--radius-pill); | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| color: var(--text-muted); | |
| font-size: 12.5px; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all var(--t-fast) var(--ease); | |
| user-select: none; | |
| } | |
| .chip:hover { color: var(--text); border-color: var(--border-strong); } | |
| .chip.active { | |
| background: var(--primary-soft); | |
| border-color: var(--primary); | |
| color: var(--primary); | |
| } | |
| .chip .count { font-size: 11px; opacity: 0.7; } | |
| /* ---------------------------------------------------------------- | |
| Toast / snackbar | |
| Mirrors the rich toast style in copilot.css. Kept here so legacy | |
| pages that only load panel.css still get the upgraded experience. | |
| ---------------------------------------------------------------- */ | |
| .toast-container { | |
| position: fixed; | |
| right: 18px; | |
| top: 18px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| z-index: 100; | |
| pointer-events: none; | |
| max-width: min(360px, calc(100vw - 32px)); | |
| } | |
| .toast { | |
| pointer-events: auto; | |
| position: relative; | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| box-shadow: var(--shadow-lg); | |
| padding: 12px 14px 14px; | |
| min-width: 240px; | |
| max-width: 360px; | |
| display: flex; | |
| gap: 10px; | |
| align-items: flex-start; | |
| overflow: hidden; | |
| will-change: transform, opacity; | |
| animation: ptoastIn 380ms cubic-bezier(0.2, 1.2, 0.4, 1) both; | |
| } | |
| .toast::before { | |
| content: ""; | |
| position: absolute; left: 0; top: 0; bottom: 0; | |
| width: 3px; | |
| background: var(--text-muted); | |
| opacity: 0.85; | |
| } | |
| .toast.success::before { background: var(--success); } | |
| .toast.error::before { background: var(--error); } | |
| .toast.info::before { background: var(--info); } | |
| .toast.warning::before { background: #f0a500; } | |
| .toast .ico { | |
| width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; | |
| animation: ptoastIconPop 480ms 80ms cubic-bezier(0.2, 1.6, 0.4, 1) both; | |
| transform-origin: center; | |
| } | |
| .toast.success .ico { color: var(--success); } | |
| .toast.error .ico { color: var(--error); } | |
| .toast.info .ico { color: var(--info); } | |
| .toast.warning .ico { color: #f0a500; } | |
| .toast .toast-body { flex: 1; font-size: 13.5px; line-height: 1.4; min-width: 0; } | |
| .toast .toast-title { font-weight: 600; word-break: break-word; } | |
| .toast .toast-msg { color: var(--text-muted); margin-top: 2px; font-size: 12.5px; word-break: break-word; } | |
| .toast::after { | |
| content: "×"; | |
| position: absolute; top: 6px; right: 8px; | |
| font-size: 14px; line-height: 1; color: var(--text-muted); | |
| opacity: 0; transition: opacity 120ms var(--ease); | |
| cursor: pointer; user-select: none; | |
| } | |
| .toast:hover::after { opacity: 0.8; } | |
| .toast .toast-progress { | |
| position: absolute; left: 0; right: 0; bottom: 0; | |
| height: 3px; background: transparent; pointer-events: none; | |
| overflow: hidden; | |
| } | |
| .toast .toast-progress > span { | |
| display: block; height: 100%; | |
| background: currentColor; opacity: 0.55; | |
| width: 100%; | |
| transform-origin: left center; | |
| transform: scaleX(1); | |
| animation: ptoastDrain linear forwards; | |
| } | |
| .toast.success .toast-progress > span { color: var(--success); } | |
| .toast.error .toast-progress > span { color: var(--error); } | |
| .toast.info .toast-progress > span { color: var(--info); } | |
| .toast.warning .toast-progress > span { color: #f0a500; } | |
| .toast.leaving { animation: ptoastOut 220ms cubic-bezier(0.4, 0.0, 1, 1) forwards; } | |
| @keyframes ptoastIn { | |
| 0% { opacity: 0; transform: translate3d(0, -16px, 0) scale(0.96); } | |
| 60% { opacity: 1; transform: translate3d(0, 4px, 0) scale(1.01); } | |
| 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } | |
| } | |
| @keyframes ptoastIconPop { | |
| 0% { transform: scale(0.4); opacity: 0; } | |
| 70% { transform: scale(1.18); opacity: 1; } | |
| 100% { transform: scale(1); opacity: 1; } | |
| } | |
| @keyframes ptoastOut { | |
| 0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } | |
| 100% { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.97); } | |
| } | |
| @keyframes ptoastDrain { | |
| from { transform: scaleX(1); } | |
| to { transform: scaleX(0); } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .toast, .toast .ico, .toast .toast-progress > span { | |
| animation: none ; | |
| } | |
| .toast { opacity: 1; } | |
| } | |
| /* ---------------------------------------------------------------- | |
| Auth pages (login / register) | |
| ---------------------------------------------------------------- */ | |
| .auth-page { | |
| min-height: 100vh; | |
| display: grid; | |
| grid-template-columns: 1.05fr 1fr; | |
| background: var(--bg); | |
| color: var(--text); | |
| } | |
| .auth-brand { | |
| background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%); | |
| color: #fff; | |
| padding: 60px; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: space-between; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .auth-brand::before { | |
| content: ""; | |
| position: absolute; | |
| inset: 0; | |
| background: radial-gradient(60% 60% at 20% 20%, rgba(255,255,255,0.18), transparent 60%), | |
| radial-gradient(60% 50% at 90% 90%, rgba(0,0,0,0.30), transparent 70%); | |
| pointer-events: none; | |
| } | |
| .auth-brand .brand-head { position: relative; z-index: 1; } | |
| .auth-brand .logo-big { | |
| width: 60px; height: 60px; | |
| border-radius: 14px; | |
| background: rgba(255,255,255,0.18); | |
| backdrop-filter: blur(8px); | |
| display: grid; place-items: center; | |
| font-size: 28px; | |
| margin-bottom: 22px; | |
| border: 1px solid rgba(255,255,255,0.25); | |
| } | |
| .auth-brand h1 { | |
| font-size: 32px; | |
| margin: 0 0 12px; | |
| letter-spacing: -0.02em; | |
| line-height: 1.15; | |
| } | |
| .auth-brand .tagline { | |
| font-size: 15px; | |
| opacity: 0.85; | |
| max-width: 38ch; | |
| line-height: 1.55; | |
| } | |
| .auth-brand .brand-features { | |
| position: relative; | |
| z-index: 1; | |
| display: grid; | |
| gap: 16px; | |
| max-width: 480px; | |
| } | |
| .auth-brand .feature { | |
| display: flex; | |
| gap: 12px; | |
| align-items: flex-start; | |
| } | |
| .auth-brand .feature .ico { | |
| width: 28px; height: 28px; | |
| border-radius: 8px; | |
| background: rgba(255,255,255,0.18); | |
| display: grid; place-items: center; | |
| flex: 0 0 28px; | |
| } | |
| .auth-brand .feature .ico svg { width: 14px; height: 14px; color: #fff; } | |
| .auth-brand .feature .text strong { display: block; font-size: 14px; } | |
| .auth-brand .feature .text span { font-size: 13px; opacity: 0.78; } | |
| .auth-brand .brand-foot { | |
| position: relative; z-index: 1; | |
| font-size: 12px; opacity: 0.65; | |
| } | |
| .auth-panel { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 40px; | |
| } | |
| .auth-card { | |
| width: 100%; | |
| max-width: 420px; | |
| } | |
| .auth-card h2 { | |
| margin: 0 0 6px; | |
| font-size: 24px; | |
| letter-spacing: -0.02em; | |
| } | |
| .auth-card .auth-sub { | |
| color: var(--text-muted); | |
| font-size: 14px; | |
| margin-bottom: 22px; | |
| } | |
| .auth-card .auth-footer { | |
| margin-top: 22px; | |
| padding-top: 18px; | |
| border-top: 1px solid var(--border); | |
| text-align: center; | |
| font-size: 13.5px; | |
| color: var(--text-muted); | |
| } | |
| .auth-card .auth-footer a { color: var(--primary); font-weight: 500; } | |
| /* ---------------------------------------------------------------- | |
| Modal | |
| ---------------------------------------------------------------- */ | |
| .modal-backdrop { | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(2, 6, 23, 0.55); | |
| backdrop-filter: blur(4px); | |
| z-index: 50; | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 20px; | |
| } | |
| .modal-backdrop.is-open { display: flex; animation: fadeIn var(--t-fast) var(--ease); } | |
| .modal { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| width: 100%; | |
| max-width: 480px; | |
| box-shadow: var(--shadow-lg); | |
| overflow: hidden; | |
| animation: scaleIn var(--t-med) var(--ease); | |
| } | |
| .modal-head { | |
| padding: 14px 18px; | |
| border-bottom: 1px solid var(--border); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .modal-head h3 { margin: 0; font-size: 16px; } | |
| .modal-body { padding: 18px; color: var(--text-muted); } | |
| .modal-foot { | |
| padding: 12px 18px; | |
| border-top: 1px solid var(--border); | |
| display: flex; | |
| gap: 8px; | |
| justify-content: flex-end; | |
| background: var(--bg-elev-1); | |
| } | |
| @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } | |
| @keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } } | |
| /* ---------------------------------------------------------------- | |
| Timeline (deployment history) | |
| ---------------------------------------------------------------- */ | |
| .timeline { position: relative; padding-left: 22px; } | |
| .timeline::before { | |
| content: ""; | |
| position: absolute; | |
| top: 4px; bottom: 4px; | |
| left: 7px; | |
| width: 2px; | |
| background: var(--border); | |
| border-radius: 2px; | |
| } | |
| .timeline-item { | |
| position: relative; | |
| padding: 0 0 16px; | |
| } | |
| .timeline-item:last-child { padding-bottom: 0; } | |
| .timeline-item::before { | |
| content: ""; | |
| position: absolute; | |
| left: -19px; | |
| top: 4px; | |
| width: 12px; height: 12px; | |
| border-radius: 50%; | |
| background: var(--surface-2); | |
| border: 2px solid var(--border); | |
| } | |
| .timeline-item.success::before { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 3px var(--success-soft); } | |
| .timeline-item.error::before { background: var(--error); border-color: var(--error); box-shadow: 0 0 0 3px var(--error-soft); } | |
| .timeline-item.pending::before { background: var(--warning); border-color: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); } | |
| .timeline-item .t-head { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: 8px; | |
| margin-bottom: 2px; | |
| } | |
| .timeline-item .t-action { | |
| font-weight: 600; | |
| font-size: 13px; | |
| } | |
| .timeline-item .t-time { | |
| color: var(--text-muted); | |
| font-size: 11.5px; | |
| white-space: nowrap; | |
| } | |
| .timeline-item .t-msg { | |
| color: var(--text-muted); | |
| font-size: 12.5px; | |
| line-height: 1.4; | |
| } | |
| /* ---------------------------------------------------------------- | |
| Secret value (masked, with reveal/copy) | |
| ---------------------------------------------------------------- */ | |
| .secret { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .secret code { | |
| background: var(--surface-2); | |
| padding: 4px 8px; | |
| border-radius: 6px; | |
| font-family: var(--font-mono); | |
| font-size: 12.5px; | |
| color: var(--text); | |
| } | |
| .secret .secret-actions { display: inline-flex; gap: 4px; } | |
| .secret .secret-btn { | |
| width: 26px; height: 26px; | |
| display: grid; place-items: center; | |
| background: transparent; | |
| border: 1px solid var(--border); | |
| border-radius: 6px; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| transition: all var(--t-fast) var(--ease); | |
| } | |
| .secret .secret-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); } | |
| .secret .secret-btn svg { width: 14px; height: 14px; } | |
| /* ---------------------------------------------------------------- | |
| Health indicator (used on bot detail header) | |
| ---------------------------------------------------------------- */ | |
| .health-pill { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 4px 10px; | |
| border-radius: var(--radius-pill); | |
| font-size: 12px; | |
| font-weight: 600; | |
| border: 1px solid var(--border); | |
| background: var(--surface-2); | |
| color: var(--text-muted); | |
| } | |
| .health-pill.healthy { color: var(--success); border-color: rgba(16,185,129,0.35); background: var(--success-soft); } | |
| .health-pill.warn { color: var(--warning); border-color: rgba(245,158,11,0.35); background: var(--warning-soft); } | |
| .health-pill.down { color: var(--error); border-color: rgba(239,68,68,0.35); background: var(--error-soft); } | |
| .health-pill .ico { width: 8px; height: 8px; border-radius: 50%; background: currentColor; } | |
| /* ---------------------------------------------------------------- | |
| Quick action grid (dashboard) | |
| ---------------------------------------------------------------- */ | |
| .action-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); | |
| gap: 12px; | |
| } | |
| .action-tile { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| padding: 14px 16px; | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| text-decoration: none; | |
| color: var(--text); | |
| transition: all var(--t-fast) var(--ease); | |
| } | |
| .action-tile:hover { | |
| border-color: var(--primary); | |
| background: var(--surface-hover); | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow); | |
| text-decoration: none; | |
| } | |
| .action-tile .ico { | |
| width: 34px; height: 34px; | |
| border-radius: 9px; | |
| background: var(--primary-soft); | |
| color: var(--primary); | |
| display: grid; place-items: center; | |
| } | |
| .action-tile .ico svg { width: 16px; height: 16px; } | |
| .action-tile .label { font-weight: 600; font-size: 14px; } | |
| .action-tile .hint { font-size: 12px; color: var(--text-muted); } | |
| /* ---------------------------------------------------------------- | |
| Activity feed | |
| ---------------------------------------------------------------- */ | |
| .activity { display: flex; flex-direction: column; gap: 0; } | |
| .activity-item { | |
| display: flex; | |
| gap: 12px; | |
| padding: 10px 0; | |
| border-bottom: 1px dashed var(--border); | |
| } | |
| .activity-item:last-child { border-bottom: 0; } | |
| .activity-item .ico { | |
| width: 28px; height: 28px; | |
| border-radius: 8px; | |
| background: var(--surface-2); | |
| color: var(--text-muted); | |
| display: grid; place-items: center; | |
| flex: 0 0 28px; | |
| } | |
| .activity-item .ico svg { width: 14px; height: 14px; } | |
| .activity-item .body { flex: 1; min-width: 0; } | |
| .activity-item .body .who { font-weight: 600; font-size: 13px; } | |
| .activity-item .body .what { color: var(--text-muted); font-size: 12.5px; } | |
| .activity-item .body .when { color: var(--text-faint); font-size: 11.5px; } | |
| /* ---------------------------------------------------------------- | |
| Password strength meter | |
| ---------------------------------------------------------------- */ | |
| .strength { | |
| display: flex; | |
| gap: 4px; | |
| margin-top: 8px; | |
| } | |
| .strength-bar { | |
| flex: 1; | |
| height: 4px; | |
| background: var(--surface-2); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| } | |
| .strength-bar.weak { background: var(--error); } | |
| .strength-bar.medium { background: var(--warning); } | |
| .strength-bar.strong { background: var(--success); } | |
| /* ---------------------------------------------------------------- | |
| Invite code box | |
| ---------------------------------------------------------------- */ | |
| .invite-code { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 10px 12px; | |
| background: var(--bg); | |
| border: 1px dashed var(--border-strong); | |
| border-radius: var(--radius); | |
| font-family: var(--font-mono); | |
| font-size: 14px; | |
| word-break: break-all; | |
| } | |
| /* ---------------------------------------------------------------- | |
| Filter section (audit page) | |
| ---------------------------------------------------------------- */ | |
| .filters { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); | |
| gap: 10px; | |
| align-items: end; | |
| padding: 14px; | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| margin-bottom: 16px; | |
| } | |
| .filters .form-group { margin: 0; } | |
| .filters label { font-size: 11.5px; } | |
| /* ---------------------------------------------------------------- | |
| Misc | |
| ---------------------------------------------------------------- */ | |
| .text-muted { color: var(--text-muted); } | |
| .text-faint { color: var(--text-faint); } | |
| .text-success { color: var(--success); } | |
| .text-error { color: var(--error); } | |
| .text-warning { color: var(--warning); } | |
| .text-primary { color: var(--primary); } | |
| .inline { display: inline; } | |
| .d-none { display: none ; } | |
| .flex { display: flex; } | |
| .gap-8 { gap: 8px; } | |
| .gap-12 { gap: 12px; } | |
| .mb-0 { margin-bottom: 0; } | |
| .mt-2 { margin-top: 8px; } | |
| .mt-4 { margin-top: 16px; } | |
| .mono { font-family: var(--font-mono); } | |
| .copy-target { user-select: all; } | |
| .nowrap { white-space: nowrap; } | |
| .spacer { flex: 1; } | |
| .divider { | |
| height: 1px; | |
| background: var(--border); | |
| margin: 12px 0; | |
| } | |
| /* ---------------------------------------------------------------- | |
| Responsive | |
| ---------------------------------------------------------------- */ | |
| @media (max-width: 980px) { | |
| .auth-page { grid-template-columns: 1fr; } | |
| .auth-brand { display: none; } | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .sidebar.is-open { transform: translateX(0); } | |
| .main { margin-left: 0; } | |
| .menu-toggle { display: grid; } | |
| .content { padding: 16px; } | |
| .topbar { padding: 0 14px; } | |
| .stats-grid { grid-template-columns: 1fr 1fr; } | |
| .form-row { grid-template-columns: 1fr; } | |
| .page-header { flex-direction: column; align-items: flex-start; } | |
| } | |
| @media (max-width: 480px) { | |
| .stats-grid { grid-template-columns: 1fr; } | |
| } | |
| /* scrim — appears behind mobile sidebar */ | |
| .scrim { | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(0,0,0,0.5); | |
| z-index: 25; | |
| opacity: 0; | |
| pointer-events: none; | |
| transition: opacity var(--t-med) var(--ease); | |
| } | |
| .scrim.is-open { opacity: 1; pointer-events: auto; } | |
| /* ---------------------------------------------------------------- | |
| Two-pane layout — used by Files / Logs / Settings tabs | |
| ---------------------------------------------------------------- */ | |
| .split { | |
| display: grid; | |
| grid-template-columns: 280px 1fr; | |
| gap: 16px; | |
| align-items: start; | |
| } | |
| @media (max-width: 768px) { | |
| .split { grid-template-columns: 1fr; } | |
| } | |
| /* ---------------------------------------------------------------- | |
| File tree (left pane on Files tab) | |
| ---------------------------------------------------------------- */ | |
| .file-tree { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| overflow: hidden; | |
| position: sticky; | |
| top: calc(var(--topbar-h) + 16px); | |
| max-height: calc(100vh - var(--topbar-h) - 32px); | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .file-tree-head { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 10px 12px; | |
| border-bottom: 1px solid var(--border); | |
| background: var(--bg-elev-1); | |
| } | |
| .file-tree-head h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); } | |
| .file-tree-list { overflow-y: auto; padding: 6px; flex: 1; font-size: 13px; } | |
| .tree-node { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 4px 6px; | |
| border-radius: 6px; | |
| color: var(--text); | |
| cursor: pointer; | |
| user-select: none; | |
| transition: background var(--t-fast) var(--ease); | |
| } | |
| .tree-node:hover { background: var(--surface-hover); } | |
| .tree-node.active { background: var(--primary-soft); color: var(--primary); } | |
| .tree-node .tree-icon { | |
| width: 14px; height: 14px; | |
| color: var(--text-faint); | |
| flex: 0 0 14px; | |
| } | |
| .tree-node.active .tree-icon { color: var(--primary); } | |
| .tree-node .tree-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .tree-node .tree-size { color: var(--text-faint); font-size: 11px; } | |
| .tree-folder { font-weight: 600; } | |
| .tree-children { margin-left: 14px; border-left: 1px dashed var(--border); padding-left: 6px; } | |
| .tree-children.collapsed { display: none; } | |
| .tree-folder .tree-icon { transition: transform var(--t-fast) var(--ease); } | |
| .tree-folder.collapsed .tree-icon { transform: rotate(-90deg); } | |
| .tree-empty { padding: 20px 12px; color: var(--text-muted); text-align: center; font-size: 13px; } | |
| /* ---------------------------------------------------------------- | |
| Code viewer / editor (right pane on Files tab) | |
| ---------------------------------------------------------------- */ | |
| .code-pane { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| overflow: hidden; | |
| min-height: 460px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .code-head { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 14px; | |
| border-bottom: 1px solid var(--border); | |
| background: var(--bg-elev-1); | |
| flex-wrap: wrap; | |
| } | |
| .code-head .crumbs { | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| color: var(--text-muted); | |
| font-size: 12.5px; | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .code-head .crumbs .seg { | |
| font-family: var(--font-mono); | |
| color: var(--text); | |
| padding: 2px 6px; | |
| border-radius: 4px; | |
| background: var(--surface-2); | |
| } | |
| .code-head .crumbs .sep { color: var(--text-faint); } | |
| .code-head .meta { | |
| display: flex; | |
| gap: 6px; | |
| font-size: 11.5px; | |
| color: var(--text-muted); | |
| } | |
| .code-head .meta .badge { padding: 2px 8px; font-size: 10.5px; } | |
| .code-actions { display: flex; gap: 6px; } | |
| .code-body { | |
| flex: 1; | |
| background: var(--bg); | |
| overflow: auto; | |
| position: relative; | |
| font-family: var(--font-mono); | |
| font-size: 13px; | |
| line-height: 1.55; | |
| } | |
| .code-view { | |
| display: grid; | |
| grid-template-columns: 56px 1fr; | |
| min-height: 100%; | |
| } | |
| .code-view .gutter { | |
| background: var(--bg-elev-1); | |
| color: var(--text-faint); | |
| padding: 12px 6px 12px 0; | |
| text-align: right; | |
| user-select: none; | |
| border-right: 1px solid var(--border); | |
| font-size: 11.5px; | |
| } | |
| .code-view .source { | |
| padding: 12px 14px; | |
| margin: 0; | |
| white-space: pre; | |
| color: var(--text); | |
| overflow: auto; | |
| } | |
| .code-view .source code { background: transparent; padding: 0; } | |
| .code-editor { | |
| width: 100%; | |
| min-height: 360px; | |
| padding: 12px 14px; | |
| background: var(--bg); | |
| color: var(--text); | |
| border: 0; | |
| font-family: var(--font-mono); | |
| font-size: 13px; | |
| line-height: 1.55; | |
| resize: vertical; | |
| } | |
| .code-editor:focus { outline: none; } | |
| .code-empty { | |
| display: grid; | |
| place-items: center; | |
| min-height: 360px; | |
| color: var(--text-muted); | |
| text-align: center; | |
| } | |
| .code-empty .ico { | |
| width: 56px; height: 56px; | |
| margin: 0 auto 12px; | |
| border-radius: 16px; | |
| background: var(--primary-soft); | |
| color: var(--primary); | |
| display: grid; place-items: center; | |
| } | |
| /* Lightweight syntax tokens — picked up by JS highlight function. */ | |
| .tok-key { color: #c084fc; } | |
| .tok-str { color: #86efac; } | |
| .tok-num { color: #fbbf24; } | |
| .tok-com { color: #6b7280; font-style: italic; } | |
| .tok-fn { color: #60a5fa; } | |
| .tok-var { color: #f0abfc; } | |
| .tok-class { color: #fbbf24; font-weight: 600; } | |
| .tok-built { color: #f472b6; } | |
| .tok-prop { color: #93c5fd; } | |
| .tok-bool { color: #fbbf24; } | |
| .tok-key2 { color: #f472b6; } | |
| .tok-tag { color: #f87171; } | |
| :root[data-theme="light"] .tok-key { color: #7c3aed; } | |
| :root[data-theme="light"] .tok-str { color: #15803d; } | |
| :root[data-theme="light"] .tok-num { color: #b45309; } | |
| :root[data-theme="light"] .tok-com { color: #9ca3af; } | |
| :root[data-theme="light"] .tok-fn { color: #1d4ed8; } | |
| :root[data-theme="light"] .tok-var { color: #c026d3; } | |
| :root[data-theme="light"] .tok-class { color: #b45309; } | |
| :root[data-theme="light"] .tok-built { color: #be185d; } | |
| :root[data-theme="light"] .tok-prop { color: #1d4ed8; } | |
| :root[data-theme="light"] .tok-bool { color: #b45309; } | |
| :root[data-theme="light"] .tok-key2 { color: #be185d; } | |
| :root[data-theme="light"] .tok-tag { color: #b91c1c; } | |
| /* File save indicator */ | |
| .dirty-badge { | |
| display: inline-block; | |
| width: 8px; height: 8px; | |
| border-radius: 50%; | |
| background: var(--warning); | |
| margin-right: 4px; | |
| box-shadow: 0 0 0 3px var(--warning-soft); | |
| } | |
| /* Binary file notice */ | |
| .binary-notice { | |
| padding: 24px; | |
| text-align: center; | |
| color: var(--text-muted); | |
| } | |
| .binary-notice pre { | |
| display: inline-block; | |
| max-width: 100%; | |
| word-break: break-all; | |
| text-align: left; | |
| margin-top: 12px; | |
| } | |
| /* ---------------------------------------------------------------- | |
| Log viewer | |
| ---------------------------------------------------------------- */ | |
| .log-pane { | |
| background: #0a0e1c; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius-lg); | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 480px; | |
| } | |
| :root[data-theme="light"] .log-pane { background: #0f172a; } | |
| .log-head { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 14px; | |
| border-bottom: 1px solid var(--border); | |
| background: rgba(255,255,255,0.04); | |
| color: #cbd5e1; | |
| flex-wrap: wrap; | |
| } | |
| .log-head .seg { | |
| padding: 2px 8px; | |
| background: rgba(255,255,255,0.08); | |
| border-radius: 4px; | |
| font-size: 11.5px; | |
| color: #cbd5e1; | |
| } | |
| .log-body { | |
| flex: 1; | |
| padding: 12px 16px; | |
| font-family: var(--font-mono); | |
| font-size: 12.5px; | |
| line-height: 1.55; | |
| color: #e2e8f0; | |
| overflow: auto; | |
| white-space: pre-wrap; | |
| word-break: break-word; | |
| } | |
| .log-line { | |
| display: block; | |
| padding: 1px 0; | |
| } | |
| .log-line .ts { color: #64748b; margin-right: 8px; } | |
| .log-line.level-error { color: #fca5a5; } | |
| .log-line.level-warn { color: #fcd34d; } | |
| .log-line.level-info { color: #cbd5e1; } | |
| .log-line.level-success { color: #86efac; } | |
| .log-line .marker { | |
| display: inline-block; | |
| width: 4px; height: 4px; | |
| background: currentColor; | |
| border-radius: 50%; | |
| margin-right: 6px; | |
| vertical-align: middle; | |
| } | |
| .log-empty { | |
| padding: 36px 12px; | |
| text-align: center; | |
| color: #94a3b8; | |
| font-family: var(--font); | |
| font-size: 13px; | |
| } | |
| /* ---------------------------------------------------------------- | |
| Runtime stage badges (HF Space stages) | |
| ---------------------------------------------------------------- */ | |
| .stage-RUNNING { background: var(--success-soft); color: var(--success); } | |
| .stage-RUNNING_BUILDING { background: var(--info-soft); color: var(--info); } | |
| .stage-PAUSED { background: var(--surface-2); color: var(--text-muted); } | |
| .stage-SLEEPING { background: rgba(6,182,212,0.12); color: var(--accent-2); } | |
| .stage-BUILDING { background: var(--info-soft); color: var(--info); } | |
| .stage-RUNTIME_ERROR{ background: var(--error-soft); color: var(--error); } | |
| .stage-NO_APP_FILE { background: var(--warning-soft); color: var(--warning); } | |
| .stage-APP_STARTING { background: var(--info-soft); color: var(--info); } | |
| .stage-UNKNOWN { background: var(--surface-2); color: var(--text-muted); } | |
| /* ---------------------------------------------------------------- | |
| Settings — control rows | |
| ---------------------------------------------------------------- */ | |
| .control-row { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 12px 0; | |
| border-bottom: 1px dashed var(--border); | |
| } | |
| .control-row:last-child { border-bottom: 0; } | |
| .control-row .label { flex: 1; min-width: 0; } | |
| .control-row .label .title { font-weight: 600; } | |
| .control-row .label .hint { font-size: 12px; color: var(--text-muted); } | |
| .control-row .action { flex: 0 0 auto; } | |
| .kv-list { display: grid; gap: 8px; } | |
| .kv-list .kv-row { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr auto; | |
| gap: 8px; | |
| align-items: center; | |
| } | |
| .kv-list input { font-family: var(--font-mono); font-size: 12.5px; } | |
| .hardware-picker { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 10px; | |
| } | |
| .hardware-tile { | |
| padding: 12px 14px; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| background: var(--surface); | |
| cursor: pointer; | |
| transition: all var(--t-fast) var(--ease); | |
| } | |
| .hardware-tile:hover { border-color: var(--border-strong); } | |
| .hardware-tile.active { | |
| border-color: var(--primary); | |
| background: var(--primary-soft); | |
| box-shadow: 0 0 0 2px var(--primary-soft); | |
| } | |
| .hardware-tile input { display: none; } | |
| .hardware-tile .name { font-weight: 600; font-size: 14px; } | |
| .hardware-tile .spec { font-size: 12px; color: var(--text-muted); margin-top: 4px; } | |
| .hardware-tile.active .name { color: var(--primary); } | |
| /* ---------------------------------------------------------------- | |
| Dashboard proxy widget | |
| ---------------------------------------------------------------- */ | |
| .proxy-row { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 10px 0; | |
| border-bottom: 1px dashed var(--border); | |
| } | |
| .proxy-row:last-child { border-bottom: 0; } | |
| .proxy-row .ico { | |
| width: 32px; height: 32px; | |
| border-radius: 8px; | |
| display: grid; place-items: center; | |
| flex: 0 0 32px; | |
| } | |
| .proxy-row .ico.ok { background: var(--success-soft); color: var(--success); } | |
| .proxy-row .ico.warn { background: var(--warning-soft); color: var(--warning); } | |
| .proxy-row .ico.down { background: var(--error-soft); color: var(--error); } | |
| .proxy-row .ico.idle { background: var(--surface-2); color: var(--text-muted); } | |
| .proxy-row .body { flex: 1; min-width: 0; } | |
| .proxy-row .body .name { font-weight: 600; font-size: 13.5px; } | |
| .proxy-row .body .url { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); } | |
| .proxy-row .meta { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; } | |
| /* ---------------------------------------------------------------- | |
| Environment variables editor (Settings tab) | |
| ---------------------------------------------------------------- */ | |
| .env-rows { | |
| display: grid; | |
| gap: 8px; | |
| margin-bottom: 8px; | |
| } | |
| .env-row { | |
| display: grid; | |
| grid-template-columns: 240px 1fr auto; | |
| gap: 8px; | |
| align-items: stretch; | |
| padding: 4px; | |
| border-radius: var(--radius); | |
| background: var(--bg); | |
| border: 1px solid var(--border); | |
| transition: border-color var(--t-fast) var(--ease); | |
| } | |
| .env-row[data-state="dirty"] { border-color: var(--warning); } | |
| .env-row .env-key, | |
| .env-row .env-value { | |
| border: 1px solid transparent; | |
| background: transparent; | |
| padding: 8px 10px; | |
| font-size: 13px; | |
| color: var(--text); | |
| } | |
| .env-row .env-key:focus, | |
| .env-row .env-value:focus { | |
| border-color: var(--primary); | |
| background: var(--surface-2); | |
| outline: none; | |
| border-radius: 6px; | |
| } | |
| .env-row .env-key::placeholder, | |
| .env-row .env-value::placeholder { color: var(--text-faint); } | |
| .env-value-wrap { | |
| position: relative; | |
| display: flex; | |
| align-items: stretch; | |
| background: transparent; | |
| border: 1px solid transparent; | |
| border-radius: 6px; | |
| transition: border-color var(--t-fast) var(--ease); | |
| } | |
| .env-value-wrap:focus-within { | |
| border-color: var(--primary); | |
| background: var(--surface-2); | |
| } | |
| .env-row .env-value { padding-right: 60px; flex: 1; } | |
| .env-action { | |
| width: 28px; height: 28px; | |
| border-radius: 6px; | |
| background: transparent; | |
| border: 0; | |
| color: var(--text-muted); | |
| display: grid; place-items: center; | |
| cursor: pointer; | |
| transition: all var(--t-fast) var(--ease); | |
| } | |
| .env-action:hover { background: var(--surface-2); color: var(--text); } | |
| .env-action svg { width: 14px; height: 14px; } | |
| .env-value-wrap .env-action { | |
| position: absolute; | |
| right: 4px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } | |
| .env-value-wrap .env-copy { right: 32px; } | |
| .env-row-actions { display: flex; align-items: center; gap: 4px; } | |
| .env-row-actions .env-delete:hover { color: var(--error); } | |
| .env-empty { font-size: 13px; } | |
| .env-presets .chip { font-size: 12px; padding: 4px 9px; } | |
| @media (max-width: 768px) { | |
| .env-row { grid-template-columns: 1fr; } | |
| } | |