Spaces:
Sleeping
Sleeping
| /* ββ tokens βββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| :root { | |
| font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif; | |
| font-size: 13px; | |
| color: #f3f6fb; | |
| background: | |
| radial-gradient(circle at top left, rgba(47,109,186,.26), transparent 28%), | |
| radial-gradient(circle at 80% 10%, rgba(21,191,156,.16), transparent 24%), | |
| linear-gradient(180deg, #06111f 0%, #08192c 44%, #040b14 100%); | |
| color-scheme: dark; | |
| } | |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } | |
| body { min-height: 100vh; background: transparent; } | |
| button, progress { font: inherit; } | |
| #root { min-height: 100vh; } | |
| /* ββ layout shell βββββββββββββββββββββββββββββββββββββββββ */ | |
| .app-shell { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100vh; | |
| overflow: hidden; | |
| padding: 12px 16px 12px; | |
| position: relative; | |
| } | |
| .ambient { position: absolute; border-radius: 999px; filter: blur(60px); pointer-events: none; } | |
| .ambient-a { top: 4%; left: -3%; width: 260px; height: 260px; background: rgba(34,144,255,.17); } | |
| .ambient-b { right: -2%; bottom: 8%; width: 240px; height: 240px; background: rgba(70,255,188,.12); } | |
| /* ββ topbar βββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .topbar { | |
| position: relative; z-index: 2; | |
| display: flex; align-items: center; gap: 14px; | |
| height: 52px; flex-shrink: 0; margin-bottom: 10px; | |
| } | |
| .brand { display: flex; align-items: center; gap: 12px; } | |
| .brand-mark { | |
| display: grid; place-items: center; | |
| width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; | |
| background: linear-gradient(145deg, rgba(50,118,201,.9), rgba(18,188,160,.8)); | |
| box-shadow: 0 10px 30px rgba(17,91,165,.25); | |
| } | |
| .brand h2 { font-size: .92rem; font-weight: 600; margin: 0; white-space: nowrap; } | |
| .eyebrow { | |
| font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; | |
| color: rgba(173,211,255,.65); margin-bottom: 3px; | |
| } | |
| .task-switcher { display: flex; gap: 8px; margin-left: auto; } | |
| .task-pill { | |
| border: 1px solid rgba(163,188,224,.2); border-radius: 999px; | |
| background: rgba(8,19,34,.8); color: #dbe9ff; | |
| padding: 6px 14px; text-transform: capitalize; cursor: pointer; font-size: .8rem; | |
| transition: background .2s, border-color .2s; | |
| } | |
| .task-pill.active { background: linear-gradient(135deg,#184f77,#1ca594); border-color: transparent; } | |
| .task-pill:hover:not(.active) { background: rgba(30,60,100,.8); } | |
| .header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } | |
| .score-badge { | |
| display: flex; flex-direction: column; align-items: center; | |
| padding: 5px 12px; border-radius: 12px; font-size: .7rem; line-height: 1.2; | |
| border: 1px solid rgba(100,180,255,.2); background: rgba(6,14,26,.7); | |
| } | |
| .score-badge span { color: rgba(173,211,255,.65); } | |
| .score-badge strong { font-size: 1.05rem; font-weight: 700; } | |
| .score-badge.good strong { color: #7cf7c9; } | |
| .score-badge.warn strong { color: #ffb86b; } | |
| .score-badge.bad strong { color: #ff7171; } | |
| .header-controls { display: flex; gap: 7px; } | |
| .action-button, .ghost-button { | |
| display: inline-flex; align-items: center; justify-content: center; gap: 6px; | |
| border-radius: 10px; border: 1px solid rgba(158,193,235,.14); | |
| background: rgba(12,24,40,.92); color: #eff5ff; cursor: pointer; | |
| transition: background .15s; | |
| } | |
| .action-button.sm, .ghost-button.sm { padding: 6px 12px; font-size: .78rem; } | |
| .action-button.primary { background: linear-gradient(135deg,#155b95,#1fa491); border-color: transparent; } | |
| .action-button:disabled { opacity: .5; cursor: not-allowed; } | |
| .error-banner { | |
| background: rgba(255,80,80,.12); border: 1px solid rgba(255,80,80,.2); | |
| border-radius: 8px; padding: 6px 12px; font-size: .78rem; color: #ffb0b0; | |
| margin-bottom: 8px; flex-shrink: 0; | |
| } | |
| /* ββ main 3-column grid βββββββββββββββββββββββββββββββββββ */ | |
| .main-grid { | |
| position: relative; z-index: 1; | |
| display: grid; | |
| grid-template-columns: 1fr 240px 224px; | |
| gap: 12px; | |
| flex: 1; | |
| min-height: 0; | |
| } | |
| .col-globe { display: flex; flex-direction: column; min-width: 0; } | |
| .col-mid { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; } | |
| .col-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; } | |
| /* ββ globe ββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .globe-shell { | |
| position: relative; flex: 1; | |
| border: 1px solid rgba(164,194,231,.12); | |
| background: linear-gradient(180deg, rgba(8,21,37,.94), rgba(5,14,24,.92)); | |
| box-shadow: 0 20px 60px rgba(0,0,0,.24); | |
| border-radius: 24px; overflow: hidden; | |
| } | |
| .globe-backdrop { | |
| position: absolute; inset: 0; | |
| background: | |
| radial-gradient(circle at 20% 20%, rgba(82,153,255,.18), transparent 22%), | |
| radial-gradient(circle at 70% 78%, rgba(42,198,164,.14), transparent 24%), | |
| linear-gradient(180deg, rgba(8,18,32,.7), rgba(4,10,18,.9)); | |
| } | |
| .globe-frame { | |
| position: relative; width: 100%; height: 100%; | |
| display: grid; place-items: center; | |
| } | |
| .globe-frame canvas { cursor: grab; border-radius: 50%; } | |
| .globe-frame canvas:active { cursor: grabbing; } | |
| .globe-overlay { | |
| position: absolute; inset: auto 18px 14px 18px; | |
| display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; | |
| pointer-events: none; | |
| } | |
| .globe-overlay h1 { font-size: clamp(1.3rem, 2.5vw, 2.1rem); line-height: 1; } | |
| .overlay-metrics { | |
| display: grid; grid-template-columns: repeat(2, minmax(76px, 1fr)); gap: 8px; | |
| } | |
| .overlay-metrics div { | |
| border-radius: 14px; background: rgba(6,14,24,.82); | |
| border: 1px solid rgba(172,197,227,.12); padding: 10px 12px; | |
| } | |
| .overlay-metrics span { font-size: .67rem; color: rgba(206,222,246,.65); display: block; margin-bottom: 4px; } | |
| .overlay-metrics strong { font-size: 1.05rem; } | |
| /* ββ globe markers & tooltips βββββββββββββββββββββββββββββ */ | |
| .globe-marker { | |
| display: grid; place-items: center; position: relative; | |
| cursor: pointer; | |
| } | |
| .globe-marker span { | |
| display: block; | |
| width: var(--marker-size); height: var(--marker-size); | |
| border-radius: 999px; | |
| background: var(--marker-color); | |
| border: 2px solid rgba(255,255,255,.72); | |
| box-shadow: 0 0 0 4px rgba(128,196,255,.12), 0 0 18px var(--marker-color); | |
| } | |
| .marker-tip { | |
| display: none; | |
| position: absolute; left: calc(100% + 8px); top: 50%; | |
| transform: translateY(-50%); | |
| background: rgba(5,13,24,.97); | |
| border: 1px solid rgba(100,160,255,.2); | |
| border-radius: 10px; padding: 8px 11px; | |
| white-space: nowrap; pointer-events: none; | |
| z-index: 9999; min-width: 140px; | |
| box-shadow: 0 8px 24px rgba(0,0,0,.5); | |
| } | |
| .globe-marker:hover .marker-tip { display: block; } | |
| .tip-title { font-size: .78rem; font-weight: 700; color: #d8eaff; margin-bottom: 5px; } | |
| .tip-row { display: flex; justify-content: space-between; gap: 16px; font-size: .7rem; line-height: 1.7; } | |
| .tip-row span { color: rgba(173,211,255,.6); } | |
| .tip-row strong { color: #e8f4ff; } | |
| .tip-action.produce { color: #ffb86b; } | |
| .tip-action.assemble { color: #9caaff; } | |
| .tip-action.deliver { color: #7cf7c9; } | |
| .tip-action.recharge { color: #59b8ff; } | |
| .tip-action.idle { color: #95a2bb; } | |
| .loading-state { | |
| flex: 1; display: grid; place-items: center; | |
| font-size: .95rem; color: #ffe5d2; | |
| border: 1px solid rgba(164,194,231,.12); | |
| background: rgba(8,21,37,.94); | |
| border-radius: 24px; | |
| } | |
| /* ββ shared card ββββββββββββββββββββββββββββββββββββββββββ */ | |
| .card { | |
| border: 1px solid rgba(164,194,231,.11); | |
| background: linear-gradient(180deg, rgba(8,21,37,.95), rgba(5,14,24,.93)); | |
| border-radius: 18px; padding: 13px 14px; | |
| box-shadow: 0 12px 36px rgba(0,0,0,.22); | |
| flex-shrink: 0; | |
| } | |
| .card-head { | |
| display: flex; align-items: flex-start; justify-content: space-between; | |
| gap: 10px; margin-bottom: 10px; | |
| } | |
| .card-head h3 { font-size: .85rem; font-weight: 600; } | |
| .icon-muted { color: rgba(140,175,220,.5); } | |
| /* ββ agent stats ββββββββββββββββββββββββββββββββββββββββββ */ | |
| .score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } | |
| .score-arc { display: flex; flex-direction: column; align-items: center; gap: 2px; } | |
| .score-label { font-size: .62rem; color: rgba(173,211,255,.6); text-transform: uppercase; letter-spacing: .1em; } | |
| .agent-kpis { display: grid; gap: 5px; flex: 1; } | |
| .kpi { display: flex; justify-content: space-between; align-items: center; font-size: .71rem; } | |
| .kpi span { color: rgba(173,211,255,.6); } | |
| .kpi strong.pos { color: #7cf7c9; } | |
| .kpi strong.neg { color: #ff7171; } | |
| .spark-wrap { margin-bottom: 8px; } | |
| .spark-label { font-size: .62rem; color: rgba(173,211,255,.55); display: block; margin-bottom: 3px; } | |
| .sparkline { display: block; overflow: visible; } | |
| .spark-zero { stroke: rgba(100,140,200,.2); stroke-width: 1; stroke-dasharray: 3 3; } | |
| .spark-line { fill: none; stroke: #59b8ff; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; } | |
| .spark-dot { fill: #7cf7c9; } | |
| .ep-progress { margin-bottom: 8px; } | |
| .ep-head { display: flex; justify-content: space-between; font-size: .67rem; color: rgba(173,211,255,.55); margin-bottom: 4px; } | |
| .ep-bar { height: 5px; border-radius: 999px; background: rgba(90,108,133,.25); overflow: hidden; } | |
| .ep-fill { height: 100%; background: linear-gradient(90deg, #2277cc, #1ca594); border-radius: 999px; transition: width .6s ease; } | |
| .agent-pills { display: flex; flex-wrap: wrap; gap: 5px; } | |
| .ap { | |
| font-size: .64rem; padding: 3px 8px; border-radius: 999px; | |
| background: rgba(30,55,90,.6); color: rgba(200,220,255,.75); | |
| border: 1px solid rgba(100,150,220,.12); | |
| } | |
| .ap.warn { color: #ffb86b; background: rgba(100,60,10,.35); border-color: rgba(255,184,107,.15); } | |
| /* ββ fleet status βββββββββββββββββββββββββββββββββββββββββ */ | |
| .fleet-card { flex: 1; min-height: 0; display: flex; flex-direction: column; } | |
| .sat-list { flex: 1; overflow-y: auto; display: grid; gap: 7px; scrollbar-width: thin; scrollbar-color: rgba(80,120,180,.3) transparent; } | |
| .sat-row { | |
| background: rgba(9,18,31,.75); border: 1px solid rgba(169,191,223,.08); | |
| border-radius: 12px; padding: 8px 10px; | |
| } | |
| .sat-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } | |
| .sat-name { font-size: .74rem; font-weight: 600; flex: 1; } | |
| .act-badge { | |
| font-size: .62rem; padding: 2px 7px; border-radius: 999px; text-transform: capitalize; | |
| background: rgba(140,161,194,.14); color: #c8d8f0; | |
| } | |
| .act-badge.produce { background: rgba(255,184,107,.15); color: #ffcf99; } | |
| .act-badge.assemble { background: rgba(157,170,255,.15); color: #c0c8ff; } | |
| .act-badge.deliver { background: rgba(124,247,201,.13); color: #9bf7d6; } | |
| .act-badge.recharge { background: rgba(89,184,255,.13); color: #a0d8ff; } | |
| .bar-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; } | |
| .bar-icon { color: rgba(140,175,220,.45); flex-shrink: 0; } | |
| .bar-track { flex: 1; height: 5px; background: rgba(90,108,133,.25); border-radius: 999px; overflow: hidden; } | |
| .bar-fill { height: 100%; border-radius: 999px; transition: width .5s ease; } | |
| .bar-fill.battery { background: var(--bar-color, #7cf7c9); } | |
| .bar-fill.mat { background: linear-gradient(90deg, #ffb86b, #ffd0a0); } | |
| .bar-fill.comp { background: linear-gradient(90deg, #9caaff, #bec5ff); } | |
| .bar-fill.prod { background: linear-gradient(90deg, #7cf7c9, #a0ffdd); } | |
| .bar-val { font-size: .64rem; color: rgba(173,211,255,.6); min-width: 26px; text-align: right; } | |
| /* ββ delivery orders ββββββββββββββββββββββββββββββββββββββ */ | |
| .mission-card { flex-shrink: 0; } | |
| .task-list { display: grid; gap: 5px; margin-bottom: 8px; } | |
| .task-row { | |
| display: flex; align-items: flex-start; gap: 7px; | |
| padding: 5px 8px; border-radius: 10px; | |
| background: rgba(9,18,31,.7); border: 1px solid rgba(169,191,223,.07); | |
| } | |
| .task-row.done { opacity: .55; } | |
| .task-icon { flex-shrink: 0; padding-top: 1px; } | |
| .icon-ok { color: #7cf7c9; } | |
| .icon-pending { color: rgba(140,175,220,.5); } | |
| .task-body { flex: 1; min-width: 0; } | |
| .task-id { font-size: .68rem; font-weight: 600; color: rgba(173,211,255,.75); display: block; } | |
| .task-desc { font-size: .64rem; color: rgba(173,211,255,.5); display: block; } | |
| .prio-badge { font-size: .6rem; padding: 2px 6px; border-radius: 999px; flex-shrink: 0; font-weight: 700; } | |
| .prio-badge.prio-1 { background: rgba(100,140,200,.2); color: #9bbfff; } | |
| .prio-badge.prio-2 { background: rgba(255,184,107,.15); color: #ffb86b; } | |
| .prio-badge.prio-3 { background: rgba(255,100,100,.15); color: #ff8f8f; } | |
| .task-summary { | |
| display: flex; gap: 10px; flex-wrap: wrap; | |
| padding-top: 7px; border-top: 1px solid rgba(100,140,200,.1); | |
| } | |
| .task-summary span { display: flex; align-items: center; gap: 4px; font-size: .65rem; color: rgba(173,211,255,.6); } | |
| .empty-text { font-size: .75rem; color: rgba(173,211,255,.4); text-align: center; padding: 8px 0; } | |
| /* ββ solar conditions βββββββββββββββββββββββββββββββββββββ */ | |
| .weather-row { display: grid; gap: 6px; } | |
| .weather-pill { | |
| display: flex; align-items: center; gap: 7px; | |
| background: rgba(9,18,31,.7); border: 1px solid rgba(169,191,223,.07); | |
| border-radius: 9px; padding: 5px 9px; | |
| } | |
| .wregion { font-size: .7rem; color: rgba(173,211,255,.65); text-transform: capitalize; flex: 1; } | |
| .wval { font-size: .72rem; font-weight: 600; color: #e0edff; min-width: 28px; text-align: right; } | |
| .wbar { flex: 1; height: 4px; background: rgba(90,108,133,.25); border-radius: 999px; overflow: hidden; margin-left: 6px; } | |
| .wfill { height: 100%; width: var(--cloud-pct, 50%); border-radius: 999px; } | |
| .wfill.solar { background: linear-gradient(90deg, #ffb86b, #ffe89c); } | |
| /* ββ responsive βββββββββββββββββββββββββββββββββββββββββββ */ | |
| @media (max-width: 1200px) { | |
| .main-grid { grid-template-columns: 1fr 220px; } | |
| .col-right { display: none; } | |
| } | |
| @media (max-width: 900px) { | |
| .main-grid { grid-template-columns: 1fr; } | |
| .col-mid, .col-right { display: none; } | |
| .app-shell { overflow: auto; height: auto; } | |
| } | |
| @media (max-width: 600px) { | |
| .app-shell { padding: 8px; } | |
| .topbar { height: auto; flex-wrap: wrap; } | |
| .task-switcher { order: 3; width: 100%; } | |
| } | |