mirror of
https://github.com/infinition/Bjorn.git
synced 2026-03-10 14:42:04 +00:00
- Implemented methods for fetching AI stats, training history, and recent experiences. - Added functionality to set operation mode (MANUAL, AUTO, AI) with appropriate handling. - Included helper methods for querying the database and sending JSON responses. - Integrated model metadata extraction for visualization purposes.
2175 lines
39 KiB
CSS
2175 lines
39 KiB
CSS
/* ======================================================================
|
||
Shell CSS — SPA layout: topbar, bottombar, page container, overlays.
|
||
Consumes tokens from global.css (imported separately).
|
||
====================================================================== */
|
||
|
||
/* ---- Reset & base ---- */
|
||
*,
|
||
*::before,
|
||
*::after {
|
||
box-sizing: border-box;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
html,
|
||
body {
|
||
background: var(--bg, #050709);
|
||
color: var(--ink, #e6fff7);
|
||
font: var(--font-mono, 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace);
|
||
min-height: 100vh;
|
||
overflow-x: hidden;
|
||
}
|
||
|
||
/* ---- Topbar ---- */
|
||
.topbar {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: var(--h-topbar, 56px);
|
||
z-index: 100;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 0 12px;
|
||
background: var(--grad-topbar, linear-gradient(#0c1118, #0a0e14));
|
||
border-bottom: 1px solid var(--c-border, #00ffff22);
|
||
box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
|
||
}
|
||
|
||
.topbar .logo {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
cursor: pointer;
|
||
font-weight: 800;
|
||
color: var(--acid, #00ff9a);
|
||
letter-spacing: 0.08em;
|
||
user-select: none;
|
||
}
|
||
|
||
.topbar .logo .sig {
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.topbar .spacer {
|
||
flex: 1;
|
||
}
|
||
|
||
.topbar .btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 6px 12px;
|
||
background: var(--c-btn, #0f1919);
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
border-radius: var(--control-r, 10px);
|
||
color: var(--ink, #e6fff7);
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.topbar .btn:hover {
|
||
border-color: var(--c-border-strong, #00ffff33);
|
||
box-shadow: 0 0 8px var(--glow-weak, rgba(0, 255, 154, 0.1));
|
||
}
|
||
|
||
/* ---- Lang selector ---- */
|
||
.lang-select {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.lang-selector {
|
||
background: var(--c-panel, #0b1218);
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
border-radius: var(--control-r, 10px);
|
||
color: var(--ink, #e6fff7);
|
||
padding: 4px 8px;
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* ---- Main page container ---- */
|
||
.app-container {
|
||
position: fixed;
|
||
top: var(--h-topbar, 56px);
|
||
bottom: var(--h-bottombar, 56px);
|
||
left: 0;
|
||
right: 0;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
padding: 12px;
|
||
scroll-behavior: smooth;
|
||
}
|
||
|
||
/* When the console is anchored, reserve space so the app doesn't sit under it. */
|
||
body.console-docked .app-container {
|
||
bottom: calc(var(--h-bottombar, 56px) + var(--console-dock-h, 0px));
|
||
}
|
||
|
||
.app-container[aria-busy="true"]::after {
|
||
content: '';
|
||
display: block;
|
||
width: 40px;
|
||
height: 40px;
|
||
margin: 80px auto;
|
||
border: 3px solid var(--c-border-strong, #00ffff33);
|
||
border-top-color: var(--acid, #00ff9a);
|
||
border-radius: 50%;
|
||
animation: spin 0.8s linear infinite;
|
||
}
|
||
|
||
@keyframes spin {
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
/* ---- Bottombar ---- */
|
||
.bottombar {
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: var(--h-bottombar, 56px);
|
||
z-index: 100;
|
||
display: grid;
|
||
grid-template-columns: 1fr auto 1fr;
|
||
align-items: center;
|
||
padding: 0 5px;
|
||
background: var(--grad-bottombar, linear-gradient(#0a0e14, #091017));
|
||
border-top: 1px solid var(--c-border, #00ffff22);
|
||
box-shadow: 0 -2px 12px rgba(0, 0, 0, .3);
|
||
}
|
||
|
||
.status-left {
|
||
display: grid;
|
||
grid-template-columns: auto 1fr;
|
||
align-items: center;
|
||
column-gap: 10px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.status-left img {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 6px;
|
||
background: #222;
|
||
}
|
||
|
||
.status-text {
|
||
overflow: hidden;
|
||
}
|
||
|
||
.bjorn-status {
|
||
font-weight: 700;
|
||
font-size: 13px;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
color: var(--acid, #00ff9a);
|
||
}
|
||
|
||
.bjorn-status2 {
|
||
font-size: 11px;
|
||
color: var(--muted, #8affc1cc);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.status-center {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
justify-self: center;
|
||
position: relative;
|
||
}
|
||
|
||
.status-center img {
|
||
|
||
cursor: pointer;
|
||
}
|
||
|
||
.status-character {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.status-right {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
align-items: center;
|
||
overflow: hidden;
|
||
}
|
||
|
||
|
||
.bjorn-progress {
|
||
margin-top: 2px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 11px;
|
||
color: var(--muted, #8affff);
|
||
}
|
||
|
||
.bjorn-progress-bar {
|
||
width: 64px;
|
||
height: 6px;
|
||
background: #0c1a1f;
|
||
border-radius: 3px;
|
||
overflow: hidden;
|
||
position: relative;
|
||
}
|
||
|
||
.bjorn-progress-bar::after {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
width: var(--progress, 0%);
|
||
background: linear-gradient(90deg, #00ffff, #00ffaa);
|
||
transition: width .3s ease;
|
||
}
|
||
|
||
.bjorn-progress-text {
|
||
min-width: 36px;
|
||
text-align: right;
|
||
}
|
||
|
||
|
||
.bjorn-say {
|
||
font-size: 12px;
|
||
color: var(--muted, #8affc1cc);
|
||
font-style: italic;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
max-width: 260px;
|
||
}
|
||
|
||
|
||
#bjornSay {
|
||
white-space: normal;
|
||
/* autorise le retour à la ligne */
|
||
word-break: break-word;
|
||
line-height: 1.25;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
/* centre verticalement dans la bottombar */
|
||
height: 100%;
|
||
|
||
text-align: right;
|
||
max-width: 240px;
|
||
/* évite qu’il déborde vers le centre */
|
||
}
|
||
|
||
/* ---- Console panel (matches old global.css console) ---- */
|
||
.console {
|
||
position: fixed;
|
||
left: 1px;
|
||
right: 10px;
|
||
bottom: var(--h-bottombar, 56px);
|
||
height: 48vh;
|
||
background: var(--grad-console, linear-gradient(180deg, #071018, #05090f));
|
||
border: 1px solid var(--c-border-hi, #00ffff44);
|
||
border-radius: 14px 14px 12px 12px;
|
||
box-shadow: 0 -30px 80px var(--glow-strong, #00ff9a33), inset 0 0 0 1px var(--glow-mid, #00ff9a22);
|
||
z-index: 60;
|
||
display: grid;
|
||
grid-template-rows: 8px auto auto 1fr;
|
||
transform: translateY(100%);
|
||
transition: transform .25s ease;
|
||
}
|
||
|
||
.console.open {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.console-resize {
|
||
position: sticky;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 8px;
|
||
cursor: ns-resize;
|
||
background: var(--resize-stripe, linear-gradient(90deg, transparent 0 40%, #00ff9a33 40% 60%, transparent 60% 100%));
|
||
border-radius: 14px 14px 0 0;
|
||
z-index: 5;
|
||
}
|
||
|
||
.console-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
padding: 8px 10px;
|
||
}
|
||
|
||
.console-body {
|
||
overflow: auto;
|
||
padding: 0 4px 4px 4px;
|
||
}
|
||
|
||
.console-body .logline {
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
overflow-wrap: break-word;
|
||
border-bottom: 1px dashed var(--c-border-muted, #00ffff11);
|
||
padding: 6px 4px;
|
||
}
|
||
|
||
/* Console log level severity badges */
|
||
.console-body .loglvl {
|
||
display: inline-block;
|
||
padding: 2px 8px;
|
||
border-radius: 999px;
|
||
font-weight: 700;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
border: 1px solid transparent;
|
||
vertical-align: baseline;
|
||
}
|
||
|
||
.console-body .loglvl.debug {
|
||
background: linear-gradient(180deg, var(--lvl-debug-top), var(--lvl-debug-bot));
|
||
color: var(--lvl-debug-ink);
|
||
border-color: var(--lvl-debug-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.info {
|
||
background: linear-gradient(180deg, var(--lvl-info-top), var(--lvl-info-bot));
|
||
color: var(--lvl-info-ink);
|
||
border-color: var(--lvl-info-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.warning {
|
||
background: linear-gradient(180deg, var(--lvl-warn-top), var(--lvl-warn-bot));
|
||
color: var(--lvl-warn-ink);
|
||
border-color: var(--lvl-warn-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.error {
|
||
background: linear-gradient(180deg, var(--lvl-error-top), var(--lvl-error-bot));
|
||
color: var(--lvl-error-ink);
|
||
border-color: var(--lvl-error-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.critical {
|
||
background: linear-gradient(180deg, var(--lvl-crit-top), var(--lvl-crit-bot));
|
||
color: var(--lvl-crit-ink);
|
||
border-color: var(--lvl-crit-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.success {
|
||
background: linear-gradient(180deg, var(--lvl-succ-top), var(--lvl-succ-bot));
|
||
color: var(--lvl-succ-ink);
|
||
border-color: var(--lvl-succ-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.failed {
|
||
background: linear-gradient(180deg, var(--lvl-fail-top), var(--lvl-fail-bot));
|
||
color: var(--lvl-fail-ink);
|
||
border-color: var(--lvl-fail-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.connected {
|
||
background: linear-gradient(180deg, var(--lvl-conn-top), var(--lvl-conn-bot));
|
||
color: var(--lvl-conn-ink);
|
||
border-color: var(--lvl-conn-bdr);
|
||
}
|
||
|
||
.console-body .loglvl.sseclosed {
|
||
background: linear-gradient(180deg, var(--lvl-sse-top), var(--lvl-sse-bot));
|
||
color: var(--lvl-sse-ink);
|
||
border-color: var(--lvl-sse-bdr);
|
||
}
|
||
|
||
/* File-badge with hue token */
|
||
.console-body .logfile {
|
||
display: inline-block;
|
||
padding: 2px 8px;
|
||
border-radius: 999px;
|
||
background: linear-gradient(180deg, hsla(var(--h), 80%, 25%, .28), hsla(var(--h), 80%, 18%, .38));
|
||
border: 1px solid hsla(var(--h), 95%, 55%, .55);
|
||
color: hsla(var(--h), 95%, 78%, .95);
|
||
box-shadow: 0 0 0 1px hsla(var(--h), 95%, 55%, .18) inset, 0 8px 22px hsla(var(--h), 95%, 55%, .10);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* Console font slider row */
|
||
.console-fontrow {
|
||
flex-basis: 100%;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
align-items: center;
|
||
padding-top: 2px;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.console-fontrow input[type="range"] {
|
||
width: -webkit-fill-available;
|
||
height: 2px;
|
||
border-radius: 999px;
|
||
outline: 0;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
background: linear-gradient(var(--acid, #00ff9a), var(--acid, #00ff9a)) 0/50% 100% no-repeat, rgba(255, 255, 255, .08);
|
||
}
|
||
|
||
.console-fontrow input[type="range"]::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
background: var(--acid, #00ff9a);
|
||
box-shadow: 0 0 8px var(--acid, #00ff9a);
|
||
margin-top: -4px;
|
||
}
|
||
|
||
.console-fontrow input[type="range"]::-moz-range-thumb {
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
background: var(--acid, #00ff9a);
|
||
box-shadow: 0 0 8px var(--acid, #00ff9a);
|
||
border: 0;
|
||
}
|
||
|
||
/* Console font follow (body + badges follow --console-font) */
|
||
#console .console-body,
|
||
#console #logout {
|
||
font-size: var(--console-font, 12px);
|
||
line-height: 1.3;
|
||
}
|
||
|
||
#console .loglvl {
|
||
font-size: 0.92em;
|
||
line-height: 1;
|
||
padding: .15em .55em;
|
||
border-radius: .8em;
|
||
display: inline;
|
||
vertical-align: baseline;
|
||
}
|
||
|
||
#console .logfile,
|
||
#console .number,
|
||
#console .line-number {
|
||
font-size: 1em;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.console-body {
|
||
overflow-x: hidden;
|
||
}
|
||
|
||
.console-body .logline {
|
||
white-space: pre-wrap;
|
||
word-break: break-all;
|
||
overflow-wrap: break-word;
|
||
}
|
||
}
|
||
|
||
/* Attack bar (hidden until .with-attack) */
|
||
.attackbar {
|
||
display: none;
|
||
gap: 8px;
|
||
padding: 8px 10px;
|
||
align-items: center;
|
||
border-bottom: 1px dashed var(--c-border-strong, #00ffff33);
|
||
background: var(--overlay-solid, rgba(7, 16, 24, .92));
|
||
backdrop-filter: blur(4px);
|
||
}
|
||
|
||
.console.with-attack .attackbar {
|
||
display: flex;
|
||
}
|
||
|
||
.attackbar select,
|
||
.attackbar input {
|
||
height: 34px;
|
||
line-height: 34px;
|
||
background: var(--c-panel);
|
||
color: var(--ink);
|
||
border: 1px solid var(--c-border-strong);
|
||
border-radius: 10px;
|
||
padding: 0 10px;
|
||
min-width: 120px;
|
||
}
|
||
|
||
.attackbar input {
|
||
min-width: 180px;
|
||
}
|
||
|
||
.attackbar .btn {
|
||
height: 34px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0 12px;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
/* Mode pill */
|
||
.mode-pill {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 4px 10px;
|
||
border-radius: 999px;
|
||
border: 1px solid;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
font-weight: 600;
|
||
letter-spacing: .2px;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
}
|
||
|
||
.mode-pill .dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.mode-pill.auto {
|
||
background: rgba(0, 255, 154, .15);
|
||
border-color: rgba(0, 255, 154, .45);
|
||
color: var(--acid, #00ff9a);
|
||
}
|
||
|
||
.mode-pill.auto .dot {
|
||
background: var(--acid, #00ff9a);
|
||
box-shadow: 0 0 8px var(--acid, #00ff9a);
|
||
}
|
||
|
||
.mode-pill.manual {
|
||
background: rgba(24, 144, 255, .15);
|
||
border-color: rgba(24, 144, 255, .45);
|
||
color: #57a9ff;
|
||
}
|
||
|
||
.mode-pill.manual .dot {
|
||
background: #57a9ff;
|
||
box-shadow: 0 0 8px #57a9ff;
|
||
}
|
||
|
||
.mode-pill.ai {
|
||
background: rgba(180, 0, 255, .15);
|
||
border-color: rgba(180, 0, 255, .45);
|
||
color: #d68aff;
|
||
}
|
||
|
||
.mode-pill.ai .dot {
|
||
background: #d68aff;
|
||
box-shadow: 0 0 8px #d68aff;
|
||
}
|
||
|
||
.console-scroll-btn {
|
||
position: absolute;
|
||
right: 12px;
|
||
bottom: 14px;
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--c-border-strong);
|
||
background: color-mix(in oklab, var(--c-panel) 90%, transparent);
|
||
color: var(--ink);
|
||
cursor: pointer;
|
||
z-index: 3;
|
||
}
|
||
|
||
.console-buffer-badge {
|
||
position: absolute;
|
||
right: 46px;
|
||
bottom: 18px;
|
||
min-width: 18px;
|
||
height: 18px;
|
||
padding: 0 5px;
|
||
border-radius: 999px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
background: var(--acid);
|
||
color: #001014;
|
||
z-index: 3;
|
||
}
|
||
|
||
.console-scroll-btn.hidden,
|
||
.console-buffer-badge.hidden {
|
||
display: none;
|
||
}
|
||
|
||
.console-dock-btn {
|
||
min-width: 44px;
|
||
padding: 0 10px;
|
||
}
|
||
|
||
.console-dock-btn.on {
|
||
border-color: rgba(0, 255, 154, .55);
|
||
box-shadow: 0 0 0 1px rgba(0, 255, 154, .18) inset, 0 0 14px rgba(0, 255, 154, .18);
|
||
}
|
||
|
||
.sr-only {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border: 0;
|
||
}
|
||
|
||
/* ---- QuickPanel ---- */
|
||
.quickpanel {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
top: var(--h-topbar, 56px);
|
||
height: var(--qp-h, 80vh);
|
||
max-height: calc(100vh - var(--h-topbar, 56px) - var(--h-bottombar, 56px));
|
||
width: min(720px, 92vw);
|
||
margin: 0 auto;
|
||
background: var(--grad-quickpanel, linear-gradient(180deg, #09111a, #050a0f));
|
||
border: 1px solid var(--c-border-strong, #00ffff33);
|
||
border-top: none;
|
||
border-radius: 0 0 24px 24px;
|
||
box-shadow: var(--shadow);
|
||
z-index: 65;
|
||
transform: translateY(calc(-1 * var(--qp-h, 80vh) - var(--h-topbar, 56px) - var(--qp-overshoot, 60px)));
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
pointer-events: none;
|
||
transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, visibility 0s linear .2s;
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
}
|
||
|
||
.quickpanel.open {
|
||
transform: translateY(0);
|
||
opacity: 1;
|
||
visibility: visible;
|
||
pointer-events: auto;
|
||
transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, visibility 0s;
|
||
}
|
||
|
||
.quickpanel:not(.open) {
|
||
box-shadow: none !important;
|
||
border-color: transparent !important;
|
||
}
|
||
|
||
@media (max-width:768px) {
|
||
.quickpanel {
|
||
--qp-h: 70vh;
|
||
}
|
||
}
|
||
|
||
.grip {
|
||
position: absolute;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
top: 6px;
|
||
width: 88px;
|
||
height: 6px;
|
||
border-radius: 99px;
|
||
background: color-mix(in oklab, var(--acid) 30%, transparent);
|
||
box-shadow: 0 0 12px color-mix(in oklab, var(--acid) 50%, transparent);
|
||
}
|
||
|
||
.qp-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.qp-head-left {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.qp-close {
|
||
width: 32px;
|
||
height: 32px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
background: var(--white-06);
|
||
border: 1px solid var(--white-12);
|
||
color: var(--ink);
|
||
transition: transform .15s ease, background .15s ease;
|
||
}
|
||
|
||
.qp-close:hover {
|
||
background: var(--white-10);
|
||
border-color: var(--white-20);
|
||
}
|
||
|
||
.qp-close:active {
|
||
transform: scale(.96);
|
||
}
|
||
|
||
/* QuickPanel rows & signal */
|
||
.qprow {
|
||
display: grid;
|
||
gap: 10px;
|
||
padding: 10px;
|
||
border: 1px solid var(--c-border);
|
||
border-radius: 10px;
|
||
background: var(--grad-qprow);
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.sig {
|
||
display: inline-grid;
|
||
grid-auto-flow: column;
|
||
gap: 2px;
|
||
align-items: end;
|
||
}
|
||
|
||
.sig i {
|
||
width: 4px;
|
||
height: 6px;
|
||
display: block;
|
||
background: var(--c-slot);
|
||
border: 1px solid var(--c-border);
|
||
border-bottom: none;
|
||
border-radius: 2px 2px 0 0;
|
||
}
|
||
|
||
.sig i.on {
|
||
background: var(--acid);
|
||
}
|
||
|
||
.btlist .qprow {
|
||
grid-template-columns: 1fr auto;
|
||
}
|
||
|
||
.bt-device {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.bt-type {
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* ---- Actions Dropdown ---- */
|
||
.actions {
|
||
position: relative;
|
||
z-index: 140;
|
||
}
|
||
|
||
.dropdown {
|
||
position: absolute;
|
||
right: 0;
|
||
top: 48px;
|
||
min-width: 320px;
|
||
background: var(--grad-dropdown, linear-gradient(180deg, #0a1116, #05090f));
|
||
border: 1px solid var(--c-border-strong);
|
||
border-radius: 12px;
|
||
box-shadow: 0 20px 60px var(--glow-strong);
|
||
display: none;
|
||
z-index: 130;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.dropdown.show {
|
||
display: block;
|
||
}
|
||
|
||
.dropdown.open {
|
||
display: block;
|
||
}
|
||
|
||
.menuitem {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 12px;
|
||
cursor: pointer;
|
||
border-bottom: 1px dashed var(--c-border);
|
||
}
|
||
|
||
.menuitem:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.menuitem:hover {
|
||
background: var(--c-panel);
|
||
}
|
||
|
||
.menuitem .mi-icon {
|
||
width: 16px;
|
||
}
|
||
|
||
#actionsMenu .dropdown-item {
|
||
display: flex;
|
||
width: 100%;
|
||
text-align: left;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 12px;
|
||
cursor: pointer;
|
||
border: 0;
|
||
color: var(--ink);
|
||
border-bottom: 1px dashed var(--c-border);
|
||
background: transparent;
|
||
}
|
||
|
||
#actionsMenu .dropdown-item:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
#actionsMenu .dropdown-item:hover,
|
||
#actionsMenu .dropdown-item:focus-visible {
|
||
background: var(--c-panel);
|
||
outline: none;
|
||
}
|
||
|
||
#actionsMenu.dropdown {
|
||
right: auto;
|
||
min-width: 320px;
|
||
max-width: min(92vw, 920px);
|
||
max-height: calc(100dvh - var(--h-topbar) - var(--h-bottombar) - 16px);
|
||
overflow: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
overscroll-behavior: contain;
|
||
z-index: 131;
|
||
}
|
||
|
||
@media (max-width:700px) {
|
||
#actionsMenu.dropdown {
|
||
right: auto;
|
||
min-width: min(92vw, 360px);
|
||
width: min(92vw, 360px);
|
||
max-width: 92vw;
|
||
z-index: 180;
|
||
max-height: calc(100dvh - var(--h-topbar) - var(--h-bottombar) - 12px);
|
||
}
|
||
|
||
.dropdown {
|
||
top: 44px;
|
||
min-width: 320px;
|
||
}
|
||
}
|
||
|
||
/* ---- Settings modal (tabs) ---- */
|
||
.modal-backdrop#settingsBackdrop {
|
||
background: var(--backdrop-dim);
|
||
}
|
||
|
||
#settingsBackdrop.live {
|
||
--backdrop-dim: transparent;
|
||
backdrop-filter: none !important;
|
||
-webkit-backdrop-filter: none !important;
|
||
}
|
||
|
||
#settingsBackdrop.modal-backdrop {
|
||
z-index: 90 !important;
|
||
}
|
||
|
||
#settingsBackdrop .modal {
|
||
z-index: 91 !important;
|
||
}
|
||
|
||
.modal-backdrop {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: var(--glass-8);
|
||
display: none;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 60;
|
||
}
|
||
|
||
.modal-backdrop.show {
|
||
display: flex;
|
||
}
|
||
|
||
.modal {
|
||
width: min(900px, 96vw);
|
||
max-height: 86vh;
|
||
background: var(--grad-modal, linear-gradient(180deg, #0a1016, #05080c));
|
||
border: 1px solid var(--c-border-strong);
|
||
border-radius: 16px;
|
||
box-shadow: 0 40px 120px var(--glow-strong), inset 0 0 0 1px var(--glow-strong);
|
||
display: grid;
|
||
grid-template-columns: 220px 1fr;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.modal.show {
|
||
animation: pop .2s ease;
|
||
}
|
||
|
||
@keyframes pop {
|
||
from {
|
||
transform: scale(.96);
|
||
opacity: 0;
|
||
}
|
||
|
||
to {
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
.tabs {
|
||
border-right: 1px dashed var(--c-border-strong);
|
||
padding: 10px;
|
||
overflow: auto;
|
||
}
|
||
|
||
.tabbtn {
|
||
display: block;
|
||
width: 100%;
|
||
text-align: left;
|
||
padding: 10px 12px;
|
||
margin: 6px 0;
|
||
border: 1px solid var(--c-border);
|
||
border-radius: 10px;
|
||
background: var(--c-panel);
|
||
color: var(--ink);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.tabbtn.active {
|
||
background: var(--grad-chip-selected);
|
||
outline: 2px solid color-mix(in oklab, var(--acid) 55%, transparent);
|
||
}
|
||
|
||
.tabpanel {
|
||
padding: 16px;
|
||
overflow: auto;
|
||
}
|
||
|
||
.row {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: center;
|
||
margin: 6px 0;
|
||
}
|
||
|
||
/* Settings Config tab */
|
||
.cfg-toolbar {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
margin-bottom: 10px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.cfg-host {
|
||
display: grid;
|
||
gap: 10px;
|
||
max-height: 56vh;
|
||
overflow: auto;
|
||
padding-right: 4px;
|
||
}
|
||
|
||
.cfg-cards-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||
gap: 10px;
|
||
}
|
||
|
||
.cfg-card .head {
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.cfg-card .title {
|
||
font-size: 15px;
|
||
}
|
||
|
||
.cfg-card-body {
|
||
display: grid;
|
||
gap: 8px;
|
||
}
|
||
|
||
.cfg-field {
|
||
display: grid;
|
||
gap: 6px;
|
||
padding: 8px;
|
||
border: 1px solid var(--c-border);
|
||
border-radius: 10px;
|
||
background: color-mix(in oklab, var(--c-panel) 84%, transparent);
|
||
}
|
||
|
||
.cfg-field>label {
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: var(--muted);
|
||
}
|
||
|
||
.cfg-toggle-row {
|
||
grid-template-columns: 1fr auto;
|
||
align-items: center;
|
||
}
|
||
|
||
.cfg-toggle-row>label {
|
||
font-size: 13px;
|
||
color: var(--ink);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.cfg-toggle-row .switch {
|
||
width: 48px;
|
||
height: 26px;
|
||
position: relative;
|
||
display: inline-block;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--c-border-hi);
|
||
background: var(--switch-track);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.cfg-toggle-row .switch input {
|
||
display: none;
|
||
}
|
||
|
||
.cfg-toggle-row .switch .slider {
|
||
position: absolute;
|
||
top: 2px;
|
||
left: 2px;
|
||
width: 20px;
|
||
height: 20px;
|
||
border-radius: 50%;
|
||
background: var(--switch-thumb);
|
||
box-shadow: 0 0 8px rgba(0, 0, 0, .35);
|
||
transition: transform .18s ease, background .18s ease;
|
||
}
|
||
|
||
.cfg-toggle-row .switch input:checked+.slider {
|
||
transform: translateX(22px);
|
||
background: var(--acid);
|
||
box-shadow: 0 0 10px var(--acid);
|
||
}
|
||
|
||
.cfg-number {
|
||
display: grid;
|
||
grid-template-columns: auto 1fr auto;
|
||
gap: 8px;
|
||
align-items: center;
|
||
}
|
||
|
||
.cfg-number .cfg-number-input {
|
||
text-align: center;
|
||
min-width: 84px;
|
||
}
|
||
|
||
.cfg-range {
|
||
width: 100%;
|
||
height: 2px;
|
||
border-radius: 999px;
|
||
outline: 0;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
background: linear-gradient(var(--acid), var(--acid)) 0/50% 100% no-repeat, rgba(255, 255, 255, .08);
|
||
}
|
||
|
||
.cfg-range::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
background: var(--acid);
|
||
box-shadow: 0 0 8px var(--acid);
|
||
margin-top: -4px;
|
||
}
|
||
|
||
.cfg-range::-moz-range-thumb {
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
background: var(--acid);
|
||
box-shadow: 0 0 8px var(--acid);
|
||
border: 0;
|
||
}
|
||
|
||
.cfg-chip-list {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
min-height: 26px;
|
||
}
|
||
|
||
.cfg-chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
border: 1px solid var(--c-border-strong);
|
||
border-radius: 999px;
|
||
background: var(--c-chip-bg);
|
||
color: var(--ink);
|
||
padding: 2px 8px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.cfg-chip-close {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--muted);
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.cfg-chip-input .input {
|
||
width: 100%;
|
||
}
|
||
|
||
/* Inline switch (modal lists) */
|
||
.switch {
|
||
position: relative;
|
||
width: 46px;
|
||
height: 26px;
|
||
background: var(--switch-track);
|
||
border: 1px solid var(--c-border-hi);
|
||
border-radius: 99px;
|
||
cursor: pointer;
|
||
box-shadow: inset 0 0 0 1px var(--glow-mid);
|
||
}
|
||
|
||
.switch::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 2px;
|
||
left: 2px;
|
||
width: 22px;
|
||
height: 22px;
|
||
background: var(--switch-thumb);
|
||
border-radius: 50%;
|
||
box-shadow: 0 0 10px var(--acid);
|
||
transition: .18s;
|
||
}
|
||
|
||
.switch.on {
|
||
background: var(--switch-on-bg);
|
||
}
|
||
|
||
.switch.on::after {
|
||
transform: translateX(20px);
|
||
}
|
||
|
||
/* Sheet (WiFi/BT dialogs) */
|
||
.sheet-backdrop {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: var(--glass-8);
|
||
display: none;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 75;
|
||
}
|
||
|
||
.sheet-backdrop.show {
|
||
display: flex;
|
||
}
|
||
|
||
.sheet {
|
||
width: min(520px, 94vw);
|
||
background: var(--grad-modal);
|
||
border: 1px solid var(--c-border-strong);
|
||
border-radius: 14px;
|
||
box-shadow: 0 40px 120px var(--glow-strong);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.sheet.show {
|
||
animation: pop .18s ease;
|
||
}
|
||
|
||
.sheet-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 12px 14px;
|
||
border-bottom: 1px dashed var(--c-border-strong);
|
||
}
|
||
|
||
.sheet-body {
|
||
padding: 14px;
|
||
display: grid;
|
||
gap: 12px;
|
||
}
|
||
|
||
.sheet-foot {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 8px;
|
||
padding: 12px 14px;
|
||
border-top: 1px dashed var(--c-border);
|
||
}
|
||
|
||
.field {
|
||
display: grid;
|
||
gap: 6px;
|
||
}
|
||
|
||
/* Responsive modal */
|
||
@media (max-width:900px) {
|
||
.modal {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.tabs {
|
||
display: flex;
|
||
gap: 8px;
|
||
border-right: none;
|
||
border-bottom: 1px dashed var(--c-border-strong);
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.tabbtn {
|
||
flex: 1;
|
||
}
|
||
|
||
.tabpanel {
|
||
overflow: hidden;
|
||
min-width: 0;
|
||
}
|
||
|
||
.cfg-host {
|
||
overflow-x: hidden;
|
||
}
|
||
|
||
.cfg-cards-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.cfg-field {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.cfg-chip-input {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.cfg-chip-input .input {
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.cfg-chip-list {
|
||
max-width: 100%;
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.cfg-number {
|
||
min-width: 0;
|
||
}
|
||
|
||
.cfg-number .cfg-number-input {
|
||
min-width: 50px;
|
||
max-width: 100%;
|
||
}
|
||
}
|
||
|
||
/* ---- Liveview dropdown (character hover) ---- */
|
||
.bjorn-dropdown {
|
||
position: absolute;
|
||
display: none;
|
||
z-index: 10000;
|
||
background: #222;
|
||
border-radius: 8px;
|
||
box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
|
||
bottom: calc(100% + 6px);
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
.status-center {
|
||
position: relative;
|
||
}
|
||
|
||
/* ---- Launcher rail (old behavior) ---- */
|
||
.launcher {
|
||
position: fixed;
|
||
top: 64px;
|
||
bottom: 64px;
|
||
right: 16px;
|
||
width: fit-content;
|
||
border-radius: 16px;
|
||
background: rgb(5 9 15 / 0%);
|
||
backdrop-filter: blur(6px);
|
||
border: 1px solid var(--c-border-strong);
|
||
box-shadow: 0 20px 60px #00ff9a22;
|
||
z-index: 70;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 10px;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transform: translateX(16px);
|
||
transition: .2s ease;
|
||
}
|
||
|
||
.launcher.show {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
transform: translateX(0);
|
||
}
|
||
|
||
.launcher-scroll {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
scrollbar-width: none;
|
||
scroll-behavior: smooth;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
|
||
.launcher-scroll::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
.launcher .lbtn {
|
||
all: unset;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
width: auto;
|
||
height: 90px;
|
||
cursor: pointer;
|
||
position: relative;
|
||
overflow: visible;
|
||
transition: .25s;
|
||
text-align: center;
|
||
}
|
||
|
||
.launcher .lbtn img {
|
||
width: 64px;
|
||
height: 64px;
|
||
object-fit: contain;
|
||
opacity: .8;
|
||
transition: .25s;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.launcher .lbtn:hover img {
|
||
opacity: 1;
|
||
transform: scale(1.1);
|
||
}
|
||
|
||
.launcher .lbtn .lbtn-label {
|
||
font-size: 0.75rem;
|
||
line-height: 1.1;
|
||
color: var(--c-fg-soft, var(--muted));
|
||
pointer-events: none;
|
||
text-shadow: 0 0 2px #000;
|
||
max-width: 100%;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.launcher .lbtn:hover .lbtn-label {
|
||
color: var(--acid);
|
||
}
|
||
|
||
#launcher.launcher {
|
||
left: auto !important;
|
||
right: 16px !important;
|
||
inset-inline-start: auto;
|
||
inset-inline-end: 16px;
|
||
}
|
||
|
||
/* ---- Navigation overlay (grid mode) ---- */
|
||
.nav-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 75;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: rgba(5, 7, 9, .88);
|
||
backdrop-filter: blur(24px);
|
||
-webkit-backdrop-filter: blur(24px);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity .25s ease;
|
||
}
|
||
|
||
.nav-overlay.show {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.nav-grid-container {
|
||
width: min(88vw, 560px);
|
||
max-height: 80vh;
|
||
padding: 24px;
|
||
background: rgba(11, 18, 24, .5);
|
||
border: 1px solid var(--c-border-strong);
|
||
border-radius: 16px;
|
||
box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
|
||
transform: scale(.92);
|
||
transition: transform .25s ease;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
}
|
||
|
||
.nav-overlay.show .nav-grid-container {
|
||
transform: scale(1);
|
||
}
|
||
|
||
.nav-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 16px;
|
||
justify-items: center;
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.nav-grid {
|
||
grid-template-columns: repeat(3, 1fr);
|
||
}
|
||
|
||
.nav-grid-container {
|
||
width: 94vw;
|
||
padding: 16px;
|
||
}
|
||
}
|
||
|
||
.nav-grid .lbtn {
|
||
all: unset;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
width: 100%;
|
||
max-width: 100px;
|
||
aspect-ratio: 1;
|
||
background: rgba(255, 255, 255, .04);
|
||
border: 1px solid var(--c-border);
|
||
border-radius: 12px;
|
||
cursor: pointer;
|
||
transition: all .2s ease;
|
||
}
|
||
|
||
.nav-grid .lbtn:hover {
|
||
background: rgba(0, 255, 154, .12);
|
||
border-color: var(--acid);
|
||
transform: scale(1.06);
|
||
}
|
||
|
||
.nav-grid .lbtn img {
|
||
width: 48px;
|
||
height: 48px;
|
||
opacity: .9;
|
||
transition: opacity .2s;
|
||
}
|
||
|
||
.nav-grid .lbtn:hover img {
|
||
opacity: 1;
|
||
}
|
||
|
||
.nav-grid .lbtn .lbtn-label {
|
||
font-size: 0.7rem;
|
||
color: var(--muted);
|
||
text-align: center;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
max-width: 100%;
|
||
}
|
||
|
||
.nav-grid .lbtn:hover .lbtn-label {
|
||
color: var(--acid);
|
||
}
|
||
|
||
/* ---- Settings overlay ---- */
|
||
.settings-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 210;
|
||
display: none;
|
||
justify-content: flex-end;
|
||
background: rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
.settings-overlay.show {
|
||
display: flex;
|
||
}
|
||
|
||
.settings-panel {
|
||
width: min(400px, 90vw);
|
||
height: 100vh;
|
||
overflow-y: auto;
|
||
padding: 20px;
|
||
background: var(--grad-sidebar, linear-gradient(180deg, #0a1016, #05080c));
|
||
border-left: 1px solid var(--c-border, #00ffff22);
|
||
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
|
||
}
|
||
|
||
.settings-close {
|
||
font-size: 20px;
|
||
float: right;
|
||
}
|
||
|
||
.settings-section {
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.settings-section h3 {
|
||
color: var(--acid, #00ff9a);
|
||
font-size: 16px;
|
||
margin-bottom: 12px;
|
||
padding-bottom: 6px;
|
||
border-bottom: 1px solid var(--c-border, #00ffff22);
|
||
}
|
||
|
||
/* Theme editor */
|
||
.theme-group {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.theme-group-title {
|
||
color: var(--muted, #8affc1cc);
|
||
font-size: 12px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.theme-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.theme-label {
|
||
flex: 1;
|
||
font-size: 13px;
|
||
color: var(--ink, #e6fff7);
|
||
}
|
||
|
||
.theme-input {
|
||
width: 60px;
|
||
padding: 2px 4px;
|
||
background: var(--c-panel, #0b1218);
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
border-radius: 6px;
|
||
color: var(--ink, #e6fff7);
|
||
}
|
||
|
||
input[type="color"].theme-input {
|
||
width: 36px;
|
||
height: 28px;
|
||
padding: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.theme-raw-css {
|
||
width: 100%;
|
||
padding: 8px;
|
||
background: var(--c-panel, #0b1218);
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
border-radius: 8px;
|
||
color: var(--ink, #e6fff7);
|
||
font-family: monospace;
|
||
font-size: 12px;
|
||
resize: vertical;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
/* ---- Toast notifications ---- */
|
||
.toast-container {
|
||
position: fixed;
|
||
bottom: calc(var(--h-bottombar, 56px) + 12px);
|
||
right: 12px;
|
||
z-index: 2800;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.toast {
|
||
padding: 10px 16px;
|
||
border-radius: 10px;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
pointer-events: auto;
|
||
animation: toastIn 0.2s ease;
|
||
}
|
||
|
||
.toast-info {
|
||
background: var(--c-panel, #0b1218);
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
color: var(--ink, #e6fff7);
|
||
}
|
||
|
||
.toast-success {
|
||
background: color-mix(in oklab, var(--ok, #2cff7e) 15%, var(--c-panel, #0b1218));
|
||
border: 1px solid var(--ok, #2cff7e);
|
||
color: var(--ink, #e6fff7);
|
||
}
|
||
|
||
.toast-error {
|
||
background: color-mix(in oklab, var(--danger, #ff3b3b) 15%, var(--c-panel, #0b1218));
|
||
border: 1px solid var(--danger, #ff3b3b);
|
||
color: var(--ink, #e6fff7);
|
||
}
|
||
|
||
.toast-warning {
|
||
background: color-mix(in oklab, var(--warning, #ffd166) 15%, var(--c-panel, #0b1218));
|
||
border: 1px solid var(--warning, #ffd166);
|
||
color: var(--ink, #e6fff7);
|
||
}
|
||
|
||
@keyframes toastIn {
|
||
from {
|
||
transform: translateY(10px);
|
||
opacity: 0;
|
||
}
|
||
|
||
to {
|
||
transform: none;
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
/* ---- General buttons ---- */
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 6px 12px;
|
||
background: var(--c-btn, #0f1919);
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
border-radius: var(--control-r, 10px);
|
||
color: var(--ink, #e6fff7);
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.btn:hover {
|
||
border-color: var(--c-border-strong, #00ffff33);
|
||
box-shadow: 0 0 8px var(--glow-weak, rgba(0, 255, 154, 0.1));
|
||
}
|
||
|
||
.btn-sm {
|
||
padding: 4px 8px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.btn-danger {
|
||
border-color: var(--danger, #ff3b3b);
|
||
color: var(--danger, #ff3b3b);
|
||
}
|
||
|
||
.btn-primary {
|
||
background: linear-gradient(135deg, var(--accent, #22f0b4), var(--accent-2, #18d6ff));
|
||
color: var(--ink-invert, #001014);
|
||
border-color: transparent;
|
||
}
|
||
|
||
/* ---- Card ---- */
|
||
.card {
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
background: var(--grad-card, linear-gradient(180deg, #0b1218, #070b10));
|
||
border-radius: var(--radius, 14px);
|
||
box-shadow: var(--shadow, 0 10px 30px rgba(0, 255, 154, 0.1));
|
||
padding: 12px;
|
||
}
|
||
|
||
.head {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.head .title {
|
||
font-size: 18px;
|
||
font-weight: 800;
|
||
color: var(--acid, #00ff9a);
|
||
}
|
||
|
||
.head .meta {
|
||
color: var(--muted, #8affc1cc);
|
||
font-size: 12px;
|
||
}
|
||
|
||
|
||
|
||
/* ---- Dashboard page styles ---- */
|
||
.dashboard-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
animation: fadeIn 0.4s ease;
|
||
}
|
||
|
||
@keyframes fadeIn {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(8px);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
transform: none;
|
||
}
|
||
}
|
||
|
||
.hero-grid {
|
||
display: grid;
|
||
gap: 12px;
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.hero-grid {
|
||
grid-template-columns: minmax(240px, 320px) 1fr minmax(220px, 300px);
|
||
}
|
||
|
||
.hero-grid.two-col {
|
||
grid-template-columns: 1fr 1fr;
|
||
}
|
||
}
|
||
|
||
/* Battery card */
|
||
.battery-card.naked {
|
||
border: none;
|
||
background: transparent;
|
||
box-shadow: none;
|
||
padding: 0;
|
||
display: grid;
|
||
place-items: center;
|
||
}
|
||
|
||
.battery-wrap {
|
||
position: relative;
|
||
width: clamp(180px, 46vw, 260px);
|
||
aspect-ratio: 1;
|
||
display: grid;
|
||
place-items: center;
|
||
}
|
||
|
||
.battery-ring {
|
||
position: absolute;
|
||
inset: 0;
|
||
transform: rotate(-90deg);
|
||
}
|
||
|
||
.batt-bg {
|
||
fill: none;
|
||
stroke: rgba(230, 255, 247, 0.1);
|
||
stroke-width: 4;
|
||
}
|
||
|
||
.batt-fg {
|
||
fill: none;
|
||
stroke: url(#batt-grad);
|
||
stroke-width: 4;
|
||
stroke-linecap: round;
|
||
stroke-dasharray: 100;
|
||
stroke-dashoffset: 100;
|
||
transition: stroke-dashoffset 0.9s ease;
|
||
}
|
||
|
||
.batt-fg.charging {
|
||
filter: url(#batt-glow);
|
||
}
|
||
|
||
.batt-fg.no-battery {
|
||
stroke: rgba(180, 185, 195, 0.55);
|
||
filter: none;
|
||
}
|
||
|
||
.batt-center {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: grid;
|
||
align-content: center;
|
||
justify-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.bjorn-portrait {
|
||
position: relative;
|
||
width: 64px;
|
||
height: 64px;
|
||
display: grid;
|
||
place-items: center;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.bjorn-portrait img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: contain;
|
||
}
|
||
|
||
.bjorn-lvl {
|
||
position: absolute;
|
||
right: -4px;
|
||
bottom: -4px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
padding: 2px 6px;
|
||
border-radius: 999px;
|
||
background: #0f1f18;
|
||
color: #d9ffe7;
|
||
border: 1px solid rgba(44, 255, 126, 0.4);
|
||
}
|
||
|
||
.batt-val {
|
||
font-size: clamp(18px, 5vw, 24px);
|
||
font-weight: 800;
|
||
}
|
||
|
||
.batt-state {
|
||
color: var(--muted);
|
||
font-size: 11px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.batt-indicator {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 999px;
|
||
background: #9da3b3;
|
||
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
|
||
}
|
||
|
||
.batt-state.is-charging .batt-indicator {
|
||
background: #2cff7e;
|
||
box-shadow: 0 0 8px rgba(44, 255, 126, 0.65);
|
||
}
|
||
|
||
.batt-state.is-discharging .batt-indicator {
|
||
background: #ffb347;
|
||
box-shadow: 0 0 8px rgba(255, 179, 71, 0.45);
|
||
}
|
||
|
||
.batt-state.is-no-battery .batt-indicator {
|
||
background: #9aa2b1;
|
||
box-shadow: none;
|
||
}
|
||
|
||
/* KPI grid */
|
||
.kpi-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||
gap: 8px;
|
||
}
|
||
|
||
.kpi {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: 8px;
|
||
border: 1px solid var(--c-border, #00ffff22);
|
||
border-radius: 10px;
|
||
background: var(--c-panel-2, #0a1118);
|
||
text-align: center;
|
||
}
|
||
|
||
.kpi-icon {
|
||
font-size: 18px;
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.kpi-val {
|
||
font-size: 20px;
|
||
font-weight: 800;
|
||
background: linear-gradient(135deg, var(--acid, #00ff9a), var(--acid-2, #18f0ff));
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
.kpi-label {
|
||
font-size: 10px;
|
||
color: var(--muted);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
}
|
||
|
||
.vuln-delta {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
padding: 4px 0;
|
||
}
|
||
|
||
.vuln-delta.good {
|
||
color: var(--ok, #2cff7e);
|
||
}
|
||
|
||
.vuln-delta.bad {
|
||
color: var(--danger, #ff3b3b);
|
||
}
|
||
|
||
/* System bars */
|
||
.sys-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.sys-info {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.sys-bar-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.sys-bar-label {
|
||
width: 40px;
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.sys-bar-val {
|
||
width: 40px;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
text-align: right;
|
||
}
|
||
|
||
.sys-bar {
|
||
flex: 1;
|
||
height: 6px;
|
||
background: var(--c-panel, #0b1218);
|
||
border-radius: 3px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.sys-bar-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, var(--acid, #00ff9a), var(--acid-2, #18f0ff));
|
||
border-radius: 3px;
|
||
transition: width 0.5s ease;
|
||
width: 0%;
|
||
}
|
||
|
||
.sys-bar-detail {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.sys-row {
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
|
||
/* Connectivity card */
|
||
.conn-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.conn-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 6px 8px;
|
||
border-radius: 8px;
|
||
transition: background 0.2s ease;
|
||
}
|
||
|
||
.conn-row.on {
|
||
background: rgba(0, 255, 154, 0.06);
|
||
}
|
||
|
||
.conn-row.off {
|
||
background: rgba(255, 59, 59, 0.04);
|
||
}
|
||
|
||
.conn-icon {
|
||
font-size: 16px;
|
||
width: 24px;
|
||
text-align: center;
|
||
}
|
||
|
||
.conn-label {
|
||
font-weight: 600;
|
||
font-size: 13px;
|
||
width: 60px;
|
||
}
|
||
|
||
.conn-state {
|
||
font-weight: 700;
|
||
font-size: 12px;
|
||
width: 30px;
|
||
}
|
||
|
||
.conn-details {
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.conn-detail-line {
|
||
font-size: 12px;
|
||
display: block;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.conn-under {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
display: block;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.conn-extra {
|
||
font-size: 11px;
|
||
color: var(--muted);
|
||
padding: 0 8px;
|
||
}
|
||
|
||
.net-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 4px 10px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--c-border);
|
||
font-weight: 700;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.net-badge.net-on {
|
||
background: var(--ok, #2cff7e);
|
||
color: var(--ink-invert, #001014);
|
||
}
|
||
|
||
.net-badge.net-off {
|
||
background: rgba(255, 59, 59, 0.12);
|
||
color: var(--ink);
|
||
border-color: var(--danger);
|
||
}
|
||
|
||
/* ---- Page loading state ---- */
|
||
.page-loading {
|
||
display: grid;
|
||
place-items: center;
|
||
min-height: 200px;
|
||
color: var(--muted);
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* ---- 404 ---- */
|
||
.not-found {
|
||
display: grid;
|
||
place-items: center;
|
||
min-height: 300px;
|
||
text-align: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.not-found a {
|
||
color: var(--acid, #00ff9a);
|
||
text-decoration: none;
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
/* ---- Scrollbar ---- */
|
||
::-webkit-scrollbar {
|
||
width: var(--sb-size, 10px);
|
||
height: var(--sb-size, 10px);
|
||
}
|
||
|
||
::-webkit-scrollbar-track {
|
||
background: var(--sb-track, #07121a);
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb {
|
||
background: var(--sb-thumb, #09372b);
|
||
border-radius: 5px;
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb:hover {
|
||
background: var(--sb-thumb-hi, var(--acid, #00ff9a));
|
||
}
|
||
|
||
/* ---- Mobile ---- */
|
||
@media (max-width: 700px) {
|
||
.topbar .label {
|
||
display: none;
|
||
}
|
||
|
||
.launcher {
|
||
right: 8px;
|
||
padding: 8px;
|
||
}
|
||
|
||
.launcher .lbtn img {
|
||
width: 56px;
|
||
height: 56px;
|
||
}
|
||
|
||
.bjorn-say {
|
||
max-width: 120px;
|
||
}
|
||
|
||
.status-text {
|
||
max-width: 100px;
|
||
}
|
||
|
||
.hero-grid {
|
||
grid-template-columns: 1fr !important;
|
||
}
|
||
|
||
.kpi-grid {
|
||
grid-template-columns: repeat(3, 1fr);
|
||
}
|
||
}
|