1037 lines
28 KiB
CSS
1037 lines
28 KiB
CSS
:root {
|
|
--bg: #f6f8fb;
|
|
--panel: #ffffff;
|
|
--panel2: #f2f5fb;
|
|
--text: #0f172a;
|
|
--muted: #64748b;
|
|
--border: rgba(15, 23, 42, 0.12);
|
|
--accent: #2563eb;
|
|
--accent2: #10b981;
|
|
--danger: #ef4444;
|
|
--shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
|
|
--shadow2: 0 14px 36px rgba(15, 23, 42, 0.10);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { height: 100%; }
|
|
body {
|
|
margin: 0;
|
|
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
|
|
"Segoe UI Emoji";
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.shell {
|
|
display: grid;
|
|
grid-template-columns: 260px 1fr;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100vh;
|
|
background: linear-gradient(180deg, #0b1220, #0b1220);
|
|
color: #e8eefc;
|
|
padding: 16px 14px;
|
|
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
.brand {
|
|
display: grid;
|
|
grid-template-columns: 40px 1fr;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
.brandIcon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(37, 99, 235, 0.22);
|
|
border: 1px solid rgba(37, 99, 235, 0.35);
|
|
font-weight: 800;
|
|
}
|
|
.brandTitle { font-weight: 800; font-size: 13px; letter-spacing: 0.2px; }
|
|
.brandSub { color: rgba(232,238,252,0.75); font-size: 12px; margin-top: 2px; }
|
|
|
|
.navTitle {
|
|
margin-top: 16px;
|
|
padding: 0 10px;
|
|
font-size: 11px;
|
|
color: rgba(232,238,252,0.65);
|
|
letter-spacing: 0.12em;
|
|
}
|
|
.nav { margin-top: 8px; display: grid; gap: 6px; }
|
|
.navItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 10px;
|
|
border-radius: 12px;
|
|
color: rgba(232,238,252,0.85);
|
|
text-decoration: none;
|
|
border: 1px solid transparent;
|
|
}
|
|
.navItem:hover { background: rgba(255,255,255,0.05); }
|
|
.navItem.active {
|
|
background: rgba(37, 99, 235, 0.22);
|
|
border-color: rgba(37, 99, 235, 0.30);
|
|
color: #ffffff;
|
|
}
|
|
.navDot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 999px;
|
|
background: rgba(255,255,255,0.25);
|
|
}
|
|
.navItem.active .navDot { background: rgba(37, 99, 235, 1); }
|
|
|
|
.sidebarFooter {
|
|
position: absolute;
|
|
left: 14px;
|
|
right: 14px;
|
|
bottom: 14px;
|
|
}
|
|
.statusBadge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
.statusLed {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 999px;
|
|
background: rgba(16, 185, 129, 0.85);
|
|
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
|
|
}
|
|
.statusText { color: rgba(232,238,252,0.85); font-size: 12px; }
|
|
|
|
.body {
|
|
display: grid;
|
|
grid-template-rows: 72px 1fr;
|
|
min-width: 0;
|
|
}
|
|
.topbar {
|
|
background: var(--panel);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 14px 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
}
|
|
.kicker { font-size: 12px; color: var(--muted); }
|
|
.pageTitle { font-size: 16px; font-weight: 800; letter-spacing: 0.2px; margin-top: 2px; }
|
|
.topbarActions { display: flex; gap: 10px; align-items: center; }
|
|
|
|
.content {
|
|
padding: 18px;
|
|
display: grid;
|
|
gap: 16px;
|
|
align-items: start;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
.contentLeft {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
max-height: 100%;
|
|
overflow: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.contentRight {
|
|
min-width: 0;
|
|
max-height: 100%;
|
|
}
|
|
.splitter {
|
|
align-self: stretch;
|
|
width: 10px;
|
|
margin: 0 -16px; /* overlap gap a bit for easier grab */
|
|
cursor: col-resize;
|
|
border-radius: 10px;
|
|
background: rgba(15, 23, 42, 0.04);
|
|
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
}
|
|
.splitter:hover,
|
|
.splitter.dragging {
|
|
background: rgba(37, 99, 235, 0.12);
|
|
border-color: rgba(37, 99, 235, 0.25);
|
|
}
|
|
.modelForm { display: grid; gap: 10px; }
|
|
.modelParams { display: grid; gap: 10px; }
|
|
.modelParams[hidden] { display: none; }
|
|
.modelForm .rowWide { grid-template-columns: 1fr; gap: 6px; align-items: stretch; }
|
|
.modelForm .rowWide label { line-height: 1.3; }
|
|
.inputUnit {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
.inputUnit input { min-width: 0; }
|
|
.inputUnit .unit {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
}
|
|
.acc {
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
background: var(--panel2);
|
|
overflow: hidden;
|
|
}
|
|
.acc > summary {
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
user-select: none;
|
|
}
|
|
.acc > summary::-webkit-details-marker { display: none; }
|
|
.acc > summary::after {
|
|
content: "";
|
|
float: right;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-top: 4px;
|
|
border-right: 2px solid var(--muted);
|
|
border-bottom: 2px solid var(--muted);
|
|
transform: rotate(45deg);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: 7px; }
|
|
.accBody { padding: 0 12px 12px; display: grid; gap: 10px; }
|
|
.accNested { margin-top: 4px; }
|
|
.validation {
|
|
margin: 0;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
line-height: 1.35;
|
|
background: rgba(234, 179, 8, 0.12);
|
|
border: 1px solid rgba(234, 179, 8, 0.35);
|
|
color: #92400e;
|
|
}
|
|
.validation.error {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-color: rgba(239, 68, 68, 0.35);
|
|
color: #b91c1c;
|
|
}
|
|
.yamlPreview {
|
|
margin: 0;
|
|
padding: 10px 12px;
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 11px;
|
|
line-height: 1.45;
|
|
background: #0f172a;
|
|
color: #e2e8f0;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
.btnBlock { width: 100%; justify-content: center; }
|
|
.mutedNote { margin: 0; font-size: 12px; color: var(--muted); }
|
|
.mutedNote .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; }
|
|
.mutedNote a { color: rgba(37, 99, 235, 0.9); }
|
|
.layoutManagerActions { display: flex; gap: 8px; margin-top: 4px; }
|
|
.layoutManagerActions .btn { flex: 1; justify-content: center; }
|
|
#layoutSelect { width: 100%; }
|
|
.motorWheels { display: grid; gap: 12px; }
|
|
.wheelMotorBlock {
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
background: #fff;
|
|
}
|
|
.wheelMotorTitle {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
margin-bottom: 8px;
|
|
color: var(--text);
|
|
}
|
|
.wheelMotorMeta {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin-top: 6px;
|
|
line-height: 1.35;
|
|
}
|
|
.wheelMotorBlock .rowWide { margin-bottom: 6px; }
|
|
.wheelMotorBlock .rowWide:last-child { margin-bottom: 0; }
|
|
.wheelMotorBlock input[type="checkbox"] {
|
|
width: auto;
|
|
margin-right: 6px;
|
|
}
|
|
.checkRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
.robotDiffSummary {
|
|
width: 100%;
|
|
font-size: 12px;
|
|
color: rgba(37, 99, 235, 0.95);
|
|
}
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cardHeader {
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 70%);
|
|
}
|
|
.cardHeaderToggle {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.cardHeaderToggle:hover { background: linear-gradient(180deg, rgba(37, 99, 235, 0.10), transparent 70%); }
|
|
.cardChevron {
|
|
flex-shrink: 0;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
position: relative;
|
|
margin-top: 2px;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
.cardChevron::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-right: 2px solid var(--muted);
|
|
border-bottom: 2px solid var(--muted);
|
|
transform: translate(-50%, -65%) rotate(45deg);
|
|
}
|
|
.card.collapsed .cardChevron { transform: rotate(-90deg); }
|
|
.card.collapsed .cardBody { display: none; }
|
|
.card.collapsed .cardHeader { border-bottom: none; }
|
|
|
|
.cardTitle { font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
|
|
.cardSub { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
|
|
.cardBody { padding: 14px 16px; }
|
|
|
|
.form { display: grid; gap: 10px; margin-bottom: 12px; }
|
|
.formHint {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
line-height: 1.35;
|
|
color: #b91c1c;
|
|
}
|
|
.formHint[hidden] { display: none; }
|
|
.row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; }
|
|
label { color: var(--muted); font-size: 12px; }
|
|
input, select {
|
|
width: 100%;
|
|
padding: 10px 10px;
|
|
background: var(--panel2);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
border-radius: 10px;
|
|
outline: none;
|
|
}
|
|
input:focus, select:focus { border-color: rgba(37, 99, 235, 0.55); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
|
|
|
|
.actions { display: flex; gap: 10px; }
|
|
.btn, button {
|
|
cursor: pointer;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
color: var(--text);
|
|
padding: 9px 12px;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
}
|
|
.btn.primary { background: rgba(37, 99, 235, 0.92); border-color: rgba(37, 99, 235, 0.92); color: #fff; }
|
|
.btn.primary:hover { background: rgba(37, 99, 235, 1); }
|
|
.btn.subtle { background: var(--panel2); }
|
|
.btn.danger { color: var(--danger); border-color: rgba(239, 68, 68, 0.35); }
|
|
.btn:active, button:active { transform: translateY(1px); }
|
|
.btn.active, button.active { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.55); }
|
|
|
|
.list { display: grid; gap: 10px; }
|
|
.item {
|
|
border: 1px solid var(--border);
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
padding: 10px;
|
|
}
|
|
.itemTop { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
|
|
.itemMain { flex: 1; min-width: 0; }
|
|
.itemToggle {
|
|
flex-shrink: 0;
|
|
width: 26px;
|
|
height: 26px;
|
|
margin-top: 2px;
|
|
margin-right: 8px;
|
|
padding: 0;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
.itemToggle::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-right: 2px solid var(--muted);
|
|
border-bottom: 2px solid var(--muted);
|
|
transform: translate(-50%, -65%) rotate(45deg);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
.item.collapsed .itemToggle::before { transform: translate(-50%, -35%) rotate(-135deg); }
|
|
.item.collapsed .itemBody { display: none; }
|
|
.itemTopRow { display: flex; align-items: flex-start; }
|
|
.itemName { font-weight: 700; }
|
|
.itemMeta { color: var(--muted); font-size: 12px; margin-top: 4px; }
|
|
.itemBtns { display: flex; gap: 8px; }
|
|
.poseRow {
|
|
margin-top: 8px;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
.poseField {
|
|
display: grid;
|
|
grid-template-columns: 18px 1fr;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
.poseLabel {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
text-align: right;
|
|
}
|
|
.poseInput {
|
|
padding: 8px 9px;
|
|
border-radius: 10px;
|
|
background: var(--panel2);
|
|
}
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: rgba(16, 185, 129, 0.10);
|
|
border: 1px solid rgba(16, 185, 129, 0.22);
|
|
color: rgba(16, 185, 129, 1);
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
align-items: end;
|
|
margin-bottom: 10px;
|
|
}
|
|
.tool { display: grid; gap: 6px; }
|
|
.tool label { font-size: 12px; }
|
|
.tool input { width: 120px; }
|
|
.toolGroup {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: end;
|
|
}
|
|
.toolGroup[hidden] { display: none; }
|
|
.tool select { width: 170px; }
|
|
.toolGroup .tool input { width: 110px; }
|
|
|
|
.canvasWrap {
|
|
background: #ffffff;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 10px;
|
|
height: min(72vh, 680px);
|
|
min-height: 420px;
|
|
}
|
|
canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 10px;
|
|
background: #0b1220;
|
|
touch-action: none;
|
|
}
|
|
.canvasWrap.panning canvas { cursor: grabbing; }
|
|
.canvasWrap.shift-pan canvas { cursor: grab; }
|
|
|
|
.metaBar {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px 14px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.fpHint { color: rgba(37, 99, 235, 0.95); margin-top: 8px; font-size: 12px; line-height: 1.4; }
|
|
.footprintPresetPanel {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
background: #f8fafc;
|
|
}
|
|
.footprintPresetPanel .fpShapeParams { display: grid; gap: 6px; }
|
|
.footprintPresetPanel.hidden { display: none; }
|
|
.footprintCustomPanel {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
background: #f8fafc;
|
|
}
|
|
.footprintCustomPanel.hidden { display: none; }
|
|
.fpVertexRow {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
.fpVertexLabel strong { color: var(--text); }
|
|
.fpSelectedVertex { font-size: 11px; }
|
|
.fpVertexActions { display: flex; gap: 8px; }
|
|
.fpVertexActions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 6px 10px; }
|
|
.viewHint { color: var(--muted); font-size: 12px; width: 100%; }
|
|
.canvasWrap canvas.edit-footprint { cursor: crosshair; }
|
|
|
|
.content.content--missions,
|
|
.content.content--integrations {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
max-width: 1100px;
|
|
}
|
|
.content.content--dashboard {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
max-width: 1100px;
|
|
}
|
|
.content.content--config {
|
|
grid-template-columns: var(--leftPaneW, 460px) 10px 1fr;
|
|
}
|
|
|
|
.missionsPage { min-width: 0; width: 100%; }
|
|
.missionList { display: grid; gap: 10px; }
|
|
.missionListItem {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 12px;
|
|
align-items: center;
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
.missionListItem:hover {
|
|
border-color: rgba(37, 99, 235, 0.35);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.missionListItemTitle { font-weight: 700; font-size: 14px; }
|
|
.missionListItemMeta { font-size: 12px; color: var(--muted); margin-top: 4px; }
|
|
.missionListItemActions { display: flex; gap: 8px; align-items: center; }
|
|
.missionListItemActions .btn { padding: 6px 10px; font-size: 12px; }
|
|
.missionQueueBtn {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
.missionQueueBtn:hover {
|
|
border-color: rgba(37, 99, 235, 0.35);
|
|
background: #eff6ff;
|
|
}
|
|
|
|
.missionQueueList { display: grid; gap: 8px; margin-top: 12px; }
|
|
.missionQueueItem {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 10px;
|
|
align-items: start;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: #fff;
|
|
}
|
|
.missionQueueItem.status-executing {
|
|
border-color: rgba(37, 99, 235, 0.45);
|
|
background: #eff6ff;
|
|
}
|
|
.missionQueueItem.status-completed { opacity: 0.72; }
|
|
.missionQueueItem.status-failed {
|
|
border-color: rgba(239, 68, 68, 0.35);
|
|
background: #fef2f2;
|
|
}
|
|
.missionQueueOrder { display: flex; flex-direction: column; gap: 4px; }
|
|
.missionQueueOrder .iconBtn { width: 28px; height: 28px; font-size: 12px; }
|
|
.missionQueueItemTitle { font-weight: 700; font-size: 13px; }
|
|
.missionQueueItemMeta { font-size: 12px; color: var(--muted); margin-top: 4px; }
|
|
.missionQueueItemParams { font-size: 12px; margin-top: 6px; }
|
|
.missionQueueParamVar { color: var(--accent); font-weight: 600; }
|
|
.missionQueueStatus {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
background: #f1f5f9;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
}
|
|
.missionQueueStatus.executing { background: #dbeafe; color: #1d4ed8; }
|
|
.missionQueueStatus.completed { background: #d1fae5; color: #047857; }
|
|
.missionQueueStatus.failed { background: #fee2e2; color: #b91c1c; }
|
|
.missionQueueStatus.cancelled { background: #f3f4f6; color: #6b7280; }
|
|
.missionQueueItem.status-cancelled { opacity: 0.72; }
|
|
.missionQueueCardActions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.missionQueueRunner {
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
font-size: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.missionQueueRunner.running { border-color: rgba(37, 99, 235, 0.35); background: #eff6ff; color: #1e3a8a; }
|
|
.missionVarHint { font-size: 11px; color: var(--muted); margin-top: 4px; }
|
|
|
|
.missionEditorCard { overflow: hidden; }
|
|
.missionEditorTop {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 16px 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: linear-gradient(180deg, #fff, #f8fafc);
|
|
}
|
|
.missionEditorTitleWrap { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
|
|
.missionBackBtn { padding: 8px 12px; flex-shrink: 0; }
|
|
.missionEditorKicker { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
|
|
.missionEditorTitleRow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
|
|
.missionEditorTitle { margin: 0; font-size: 18px; font-weight: 800; }
|
|
.missionEditorMeta { font-size: 12px; color: var(--muted); margin-top: 6px; }
|
|
.missionEditorTopActions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
|
|
.missionDirtyBadge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: #b45309;
|
|
background: #fef3c7;
|
|
border: 1px solid #fcd34d;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.missionActionBar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
padding: 12px 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: #0f172a;
|
|
}
|
|
.missionGroupTab {
|
|
position: relative;
|
|
}
|
|
.missionGroupTabBtn {
|
|
appearance: none;
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
background: rgba(255,255,255,0.06);
|
|
color: #e2e8f0;
|
|
border-radius: 10px;
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
.missionGroupTabBtn:hover,
|
|
.missionGroupTabBtn.open {
|
|
background: rgba(37, 99, 235, 0.35);
|
|
border-color: rgba(37, 99, 235, 0.5);
|
|
color: #fff;
|
|
}
|
|
.missionGroupMenu {
|
|
position: absolute;
|
|
top: calc(100% + 6px);
|
|
left: 0;
|
|
min-width: 220px;
|
|
max-height: 280px;
|
|
overflow: auto;
|
|
z-index: 20;
|
|
background: #fff;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow2);
|
|
padding: 6px;
|
|
}
|
|
.missionGroupMenu[hidden] { display: none; }
|
|
.missionPaletteItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
}
|
|
.missionPaletteItem:hover { background: #eff6ff; }
|
|
.missionPaletteItem.dragging { opacity: 0.45; }
|
|
.missionPaletteItem.missionRef .missionActionIcon { background: rgba(16, 185, 129, 0.15); color: #059669; }
|
|
|
|
.missionEditorBody { padding: 16px 18px 20px; }
|
|
.missionFlowHint { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
|
|
.missionActionList { display: grid; gap: 8px; min-height: 48px; }
|
|
.missionActionListEmpty { padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; }
|
|
.missionActionListEmpty[hidden],
|
|
.missionActionList:not(:empty) + .missionActionListEmpty { display: none; }
|
|
|
|
.missionActionRow {
|
|
display: grid;
|
|
grid-template-columns: 32px 1fr;
|
|
gap: 10px;
|
|
align-items: start;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: #fff;
|
|
box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
|
|
}
|
|
.missionActionTop {
|
|
grid-column: 2;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.missionActionBtns {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
.missionLoopBlock {
|
|
grid-column: 2;
|
|
margin-top: 0;
|
|
border-radius: 10px;
|
|
border: 1px dashed rgba(124, 58, 237, 0.35);
|
|
background: rgba(124, 58, 237, 0.04);
|
|
padding: 10px;
|
|
}
|
|
.missionActionRow.dragging { opacity: 0.45; }
|
|
.missionActionRow.dropBefore { box-shadow: inset 0 3px 0 var(--accent); }
|
|
.missionActionRow.dropAfter { box-shadow: inset 0 -3px 0 var(--accent); }
|
|
.missionDragHandle {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: #f8fafc;
|
|
color: var(--muted);
|
|
cursor: grab;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 14px;
|
|
user-select: none;
|
|
}
|
|
.missionDragHandle:active { cursor: grabbing; }
|
|
.missionActionMain { min-width: 0; }
|
|
.missionActionLabelRow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.missionActionLabel { font-weight: 700; font-size: 13px; }
|
|
.missionActionSummary { font-size: 12px; color: var(--muted); margin-top: 4px; }
|
|
.missionActionIcon {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
background: rgba(37, 99, 235, 0.12);
|
|
color: var(--accent);
|
|
flex-shrink: 0;
|
|
}
|
|
.missionActionIcon.kind-mission { background: rgba(16, 185, 129, 0.15); color: #059669; }
|
|
.missionActionIcon.kind-loop { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
|
|
.iconBtn {
|
|
appearance: none;
|
|
border: 1px solid var(--border);
|
|
background: #fff;
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
color: var(--muted);
|
|
}
|
|
.iconBtn:hover { border-color: rgba(37, 99, 235, 0.35); color: var(--accent); background: #eff6ff; }
|
|
.iconBtn.danger:hover { border-color: rgba(239, 68, 68, 0.35); color: var(--danger); background: #fef2f2; }
|
|
|
|
.missionLoopLabel {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: #7c3aed;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-bottom: 8px;
|
|
}
|
|
.missionLoopDrop {
|
|
display: grid;
|
|
gap: 8px;
|
|
min-height: 44px;
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
transition: background 0.15s ease;
|
|
}
|
|
.missionLoopDrop.dragOver {
|
|
background: rgba(37, 99, 235, 0.08);
|
|
outline: 2px dashed rgba(37, 99, 235, 0.35);
|
|
outline-offset: 2px;
|
|
}
|
|
.missionLoopEmpty {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
padding: 10px;
|
|
}
|
|
|
|
.missionDialog {
|
|
border: none;
|
|
border-radius: 16px;
|
|
padding: 0;
|
|
width: min(480px, calc(100vw - 32px));
|
|
box-shadow: var(--shadow2);
|
|
}
|
|
.missionDialogWide { width: min(560px, calc(100vw - 32px)); }
|
|
.missionDialog::backdrop { background: rgba(15, 23, 42, 0.45); }
|
|
.missionDialogForm { display: grid; }
|
|
.missionDialogHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 16px 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.missionDialogHeader h3 { margin: 0; font-size: 16px; }
|
|
.missionDialogBody { padding: 16px 18px; display: grid; gap: 12px; }
|
|
.missionDialogBody textarea {
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
font: inherit;
|
|
resize: vertical;
|
|
}
|
|
.missionDialogFooter {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
padding: 14px 18px;
|
|
border-top: 1px solid var(--border);
|
|
background: #f8fafc;
|
|
}
|
|
.missionConfigGrid { display: grid; gap: 12px; }
|
|
.missionConfigGrid .rowWide { grid-template-columns: 1fr; gap: 6px; }
|
|
|
|
.dashboardPage { display: grid; gap: 16px; min-width: 0; width: 100%; }
|
|
.dashboardToolbar { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.dashboardGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.dashboardGrid--edit .dashboardWidget { outline: 2px dashed rgba(37, 99, 235, 0.25); outline-offset: 2px; }
|
|
.dashboardWidget {
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
min-height: 140px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.dashboardWidgetHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
}
|
|
.dashboardWidgetTitle { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
|
|
.dashboardWidgetChrome { display: flex; gap: 6px; }
|
|
.dashboardWidgetBody { padding: 12px; display: grid; gap: 10px; flex: 1; align-content: start; }
|
|
.dashboardWidgetHint { margin: 0; font-size: 11px; }
|
|
.dashboardMissionBtn,
|
|
.dashboardMissionGroupBtn {
|
|
appearance: none;
|
|
width: 100%;
|
|
border: 1px solid rgba(37, 99, 235, 0.25);
|
|
background: linear-gradient(180deg, #eff6ff, #dbeafe);
|
|
color: #1e3a8a;
|
|
border-radius: 12px;
|
|
padding: 14px 12px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
.dashboardMissionBtn:hover,
|
|
.dashboardMissionGroupBtn:hover { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow); }
|
|
.dashboardMissionBtnIcon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 999px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(37, 99, 235, 0.15);
|
|
font-size: 12px;
|
|
}
|
|
.dashboardMissionGroupList { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
|
|
.dashboardMissionGroupBtn { padding: 10px 12px; font-size: 13px; justify-content: flex-start; }
|
|
.dashboardQueueRunner {
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: #f8fafc;
|
|
font-size: 12px;
|
|
}
|
|
.dashboardQueueRunner.running { background: #eff6ff; border-color: rgba(37, 99, 235, 0.25); color: #1e3a8a; }
|
|
.dashboardQueueRunner.paused { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
|
|
.dashboardQueueList { display: grid; gap: 6px; max-height: 180px; overflow: auto; }
|
|
.missionQueueItem.compact { grid-template-columns: 1fr auto; padding: 8px 10px; }
|
|
.missionQueueWidgetActions { display: flex; align-items: center; }
|
|
.dashboardPauseBtn {
|
|
appearance: none;
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
background: #fff7ed;
|
|
color: #9a3412;
|
|
}
|
|
.dashboardPauseBtn.is-paused { background: #ecfdf5; color: #047857; }
|
|
.dashboardPauseBtn:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
.dashboardRunnerControls { display: grid; gap: 8px; }
|
|
.dashboardCancelBtn {
|
|
appearance: none;
|
|
width: 100%;
|
|
border: 1px solid rgba(239, 68, 68, 0.35);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
}
|
|
.dashboardCancelBtn:hover:not(:disabled) { background: #fee2e2; }
|
|
.dashboardCancelBtn:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
.dashboardInfoCard .dashboardInfoGrid { display: grid; gap: 8px; }
|
|
.dashboardEmpty { text-align: center; padding: 12px 0 0; }
|
|
|
|
@media (max-width: 980px) {
|
|
.shell { grid-template-columns: 1fr; }
|
|
.sidebar { position: relative; height: auto; }
|
|
.body { grid-template-rows: auto 1fr; }
|
|
.content { grid-template-columns: 1fr; height: auto; }
|
|
.splitter { display: none; }
|
|
.contentLeft { max-height: none; overflow: visible; }
|
|
}
|
|
|
|
.integrationsPage { min-width: 0; width: 100%; display: grid; gap: 16px; }
|
|
.integrationRow { cursor: default; }
|
|
.integrationHeaderActions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.integrationCoilSection { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
|
|
.integrationSectionLabel { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
|
|
.integrationCoilGrid { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.integrationCoilChip {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 12px;
|
|
padding: 6px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
}
|
|
.integrationCoilChip.on {
|
|
border-color: var(--accent);
|
|
background: color-mix(in srgb, var(--accent) 18%, var(--panel2));
|
|
}
|
|
.integrationCoilChip:hover { border-color: var(--accent); }
|
|
.integrationApiBody { display: grid; gap: 14px; }
|
|
.integrationApiBlock { display: grid; gap: 6px; }
|
|
.integrationPre {
|
|
margin: 0;
|
|
padding: 12px 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel2);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
.integrationCode { font-size: 13px; word-break: break-all; }
|
|
.integrationTestRow .integrationTestActions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
.integrationTestRow select { min-width: 220px; }
|