632 lines
9.5 KiB
CSS
632 lines
9.5 KiB
CSS
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
border-radius: 0 !important;
|
|
box-shadow: none !important;
|
|
backdrop-filter: none !important;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.app-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
background: var(--bg-panel);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.topbar-brand,
|
|
.topbar-actions,
|
|
.row,
|
|
.row-between,
|
|
.dialog-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.row-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.dialog-actions {
|
|
justify-content: flex-end;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.brand-mark {
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.primary-nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
padding: 6px 12px;
|
|
background: var(--bg-elevated);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.nav-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 36px;
|
|
padding: 4px 10px;
|
|
border: 1px solid transparent;
|
|
color: var(--fg-muted);
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.nav-link:hover,
|
|
.nav-link.active {
|
|
color: var(--fg);
|
|
border-color: var(--border);
|
|
background: var(--bg-panel);
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.global-banner {
|
|
padding: 8px 12px;
|
|
background: var(--bg-elevated);
|
|
border-bottom: 1px solid var(--warn);
|
|
color: var(--warn);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.view-root {
|
|
flex: 1 1 auto;
|
|
padding: 12px;
|
|
max-width: 1400px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.grid-3 {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.config-layout {
|
|
display: grid;
|
|
grid-template-columns: 280px minmax(0, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.panel {
|
|
background: var(--bg-panel);
|
|
border: 1px solid var(--border);
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.panel-region {
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: auto 320px auto 260px;
|
|
}
|
|
|
|
@supports not (content-visibility: auto) {
|
|
.panel-region {
|
|
contain: layout style paint;
|
|
}
|
|
}
|
|
|
|
.panel h1,
|
|
.panel h2,
|
|
.panel h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 15px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.mono {
|
|
font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.ok-text {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.warn-text {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.err-text {
|
|
color: var(--err);
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.badge-ok {
|
|
color: var(--ok);
|
|
border-color: var(--ok);
|
|
}
|
|
|
|
.badge-warn {
|
|
color: var(--warn);
|
|
border-color: var(--warn);
|
|
}
|
|
|
|
.badge-err {
|
|
color: var(--err);
|
|
border-color: var(--err);
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 40px;
|
|
padding: 6px 12px;
|
|
background: var(--bg-elevated);
|
|
color: var(--fg);
|
|
border: 1px solid var(--border);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn:hover:not(:disabled) {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn-sm {
|
|
min-height: 32px;
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: var(--accent-fg);
|
|
border-color: var(--accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.btn-danger {
|
|
color: var(--err);
|
|
border-color: var(--err);
|
|
}
|
|
|
|
.btn-safe-on {
|
|
color: var(--warn);
|
|
border-color: var(--warn);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
body[data-safe-mode="true"] .mutating-action {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 6px 8px;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
border: 1px solid var(--border);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
min-height: 20px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.chk-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
color: var(--fg);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.input-sm {
|
|
width: auto;
|
|
min-height: 32px;
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
textarea.code-editor {
|
|
min-height: 380px;
|
|
line-height: 1.4;
|
|
tab-size: 2;
|
|
white-space: pre;
|
|
overflow-wrap: normal;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.table-wrap {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
text-align: left;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border);
|
|
vertical-align: top;
|
|
}
|
|
|
|
th {
|
|
background: var(--bg-elevated);
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.file-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.file-btn {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
text-align: left;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.file-btn.active {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.qr-box {
|
|
display: inline-block;
|
|
align-self: flex-start;
|
|
width: fit-content;
|
|
line-height: 0;
|
|
background: #ffffff;
|
|
padding: 8px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.qr-box svg {
|
|
display: block;
|
|
width: 180px;
|
|
height: 180px;
|
|
}
|
|
|
|
.auth-center {
|
|
max-width: 500px;
|
|
margin: 24px auto;
|
|
}
|
|
|
|
.form-msg {
|
|
min-height: 18px;
|
|
margin: 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.code-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.code-chip {
|
|
padding: 6px 8px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
text-align: center;
|
|
}
|
|
|
|
dialog {
|
|
max-width: 480px;
|
|
width: calc(100% - 24px);
|
|
padding: 16px;
|
|
background: var(--bg-panel);
|
|
color: var(--fg);
|
|
border: 1px solid var(--accent);
|
|
}
|
|
|
|
dialog.dialog-wide {
|
|
max-width: 860px;
|
|
}
|
|
|
|
dialog:modal {
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
dialog::backdrop {
|
|
background: rgba(0, 0, 0, 0.75);
|
|
overflow: hidden;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.diff-body {
|
|
max-height: 55dvh;
|
|
overflow: auto;
|
|
padding: 8px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
font-size: 12px;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.diff-add {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.diff-del {
|
|
color: var(--err);
|
|
}
|
|
|
|
.metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 6px;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.metric-cell {
|
|
padding: 6px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.metric-label {
|
|
font-size: 11px;
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.metric-val {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.spark-svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: 44px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.chart-svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: 120px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.disk-bar {
|
|
height: 6px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.disk-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
}
|
|
|
|
.alert-box {
|
|
border: 1px solid var(--err);
|
|
background: var(--bg-panel);
|
|
padding: 10px 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.tofu-box {
|
|
border: 1px solid var(--warn);
|
|
background: var(--bg-panel);
|
|
padding: 10px 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.subtab-bar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.breadcrumbs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chip-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.term-shell {
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
contain: layout style paint;
|
|
}
|
|
|
|
.term-viewport {
|
|
width: 100%;
|
|
height: 55dvh;
|
|
min-height: 260px;
|
|
padding: 4px;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.touch-keybar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 6px;
|
|
border-top: 1px solid var(--border);
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
.touch-key {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 34px;
|
|
min-width: 38px;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.touch-key:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.touch-key.active {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.stream-log {
|
|
max-height: 45dvh;
|
|
overflow: auto;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
padding: 8px;
|
|
margin: 8px 0;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 12px;
|
|
contain: layout style paint;
|
|
}
|
|
|
|
.sftp-dropzone.drag-over {
|
|
border-color: var(--accent);
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.metric-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
.grid-2,
|
|
.grid-3,
|
|
.config-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.btn,
|
|
.nav-link,
|
|
.touch-key,
|
|
input,
|
|
select {
|
|
min-height: 44px;
|
|
}
|
|
|
|
.app-shell {
|
|
padding-bottom: 62px;
|
|
}
|
|
|
|
.primary-nav {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 20;
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
padding: 4px 6px;
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.nav-link {
|
|
flex: 0 0 auto;
|
|
padding: 6px 10px;
|
|
}
|
|
}
|