Files
wasmeld/console/src/styles/app.css
T

2111 lines
33 KiB
CSS
Raw Normal View History

:root {
--canvas: #f3f5f7;
--surface: #ffffff;
--surface-subtle: #f7f8fa;
--surface-strong: #eef1f3;
--ink: #182027;
--ink-soft: #58636d;
--ink-faint: #89939c;
--line: #dfe4e8;
--line-strong: #cdd4da;
--sidebar: #172026;
--sidebar-ink: #e9eef1;
--sidebar-muted: #8f9ba3;
--green: #16835b;
--green-bg: #e8f5ef;
--cyan: #13758a;
--cyan-bg: #e5f3f6;
--amber: #a2600c;
--amber-bg: #fff1d9;
--coral: #b74938;
--coral-bg: #fcebe8;
--shadow: 0 10px 28px rgba(24, 32, 39, 0.08);
}
* {
box-sizing: border-box;
}
html,
body {
min-height: 100%;
}
body {
margin: 0;
background: var(--canvas);
color: var(--ink);
font-family: Arial, "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif;
letter-spacing: 0;
}
button,
input,
textarea,
select {
font: inherit;
letter-spacing: 0;
}
button {
color: inherit;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline: 2px solid #2192a8;
outline-offset: 2px;
}
button:disabled {
cursor: not-allowed;
opacity: 0.45;
}
.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;
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar {
position: fixed;
inset: 0 auto 0 0;
z-index: 20;
width: 232px;
display: flex;
flex-direction: column;
padding: 22px 14px 16px;
background: var(--sidebar);
color: var(--sidebar-ink);
border-right: 1px solid #263139;
}
.brand {
min-height: 44px;
display: flex;
align-items: center;
gap: 11px;
padding: 0 8px;
}
.brand-mark {
width: 34px;
height: 34px;
display: grid;
place-items: center;
color: #c9f1df;
background: #20352f;
border: 1px solid #315449;
border-radius: 6px;
}
.brand strong,
.brand span {
display: block;
}
.brand strong {
font-size: 14px;
line-height: 18px;
}
.brand span {
margin-top: 2px;
color: var(--sidebar-muted);
font-family: var(--font-geist-mono), monospace;
font-size: 9px;
line-height: 12px;
text-transform: uppercase;
}
.environment-switcher {
width: 100%;
min-height: 52px;
margin: 20px 0 22px;
padding: 8px;
display: grid;
grid-template-columns: 30px 1fr 16px;
align-items: center;
gap: 8px;
text-align: left;
color: var(--sidebar-ink);
background: #202a30;
border: 1px solid #303b42;
border-radius: 6px;
cursor: pointer;
}
.environment-icon {
width: 30px;
height: 30px;
display: grid;
place-items: center;
color: #aadfcc;
background: #29383a;
border-radius: 5px;
}
.environment-switcher small,
.environment-switcher strong {
display: block;
}
.environment-switcher small {
margin-bottom: 2px;
color: var(--sidebar-muted);
font-size: 9px;
}
.environment-switcher strong {
max-width: 118px;
overflow: hidden;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.primary-nav {
display: flex;
flex-direction: column;
gap: 3px;
}
.nav-label {
padding: 0 10px 7px;
color: #6f7c84;
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
}
.nav-item {
position: relative;
width: 100%;
min-height: 40px;
padding: 0 10px;
display: grid;
grid-template-columns: 20px 1fr auto;
align-items: center;
gap: 8px;
color: #aab4ba;
background: transparent;
border: 0;
border-radius: 5px;
text-align: left;
font-size: 12px;
cursor: pointer;
}
.nav-item::before {
content: "";
position: absolute;
left: -14px;
width: 3px;
height: 22px;
background: transparent;
border-radius: 0 2px 2px 0;
}
.nav-item:hover {
color: #edf3f5;
background: #202a30;
}
.nav-item.active {
color: #f8fbfc;
background: #253138;
}
.nav-item.active::before {
background: #52bc94;
}
.nav-count {
min-width: 19px;
height: 19px;
padding: 0 5px;
display: grid;
place-items: center;
color: #b8e8d6;
background: #30483f;
border-radius: 10px;
font-size: 9px;
}
.sidebar-runtime {
margin-top: auto;
padding: 13px 10px 4px;
border-top: 1px solid #2a353c;
}
.runtime-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
font-weight: 700;
}
.health-pulse {
width: 7px;
height: 7px;
background: #55c697;
border-radius: 50%;
box-shadow: 0 0 0 3px rgba(85, 198, 151, 0.14);
}
.health-stopped {
background: #d79a38;
box-shadow: 0 0 0 3px rgba(215, 154, 56, 0.14);
}
.runtime-meta {
margin-top: 8px;
display: flex;
justify-content: space-between;
color: #75828a;
font-family: var(--font-geist-mono), monospace;
font-size: 9px;
}
.app-main {
min-width: 0;
min-height: 100vh;
grid-column: 2;
display: grid;
grid-template-rows: 56px 1fr 28px;
}
.topbar {
position: sticky;
top: 0;
z-index: 15;
min-width: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 28px;
background: rgba(255, 255, 255, 0.96);
border-bottom: 1px solid var(--line);
}
.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
color: var(--ink-faint);
font-size: 11px;
}
.breadcrumb strong {
color: var(--ink);
font-weight: 600;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 10px;
}
.global-search {
width: 240px;
height: 32px;
padding: 0 10px;
display: flex;
align-items: center;
gap: 8px;
color: var(--ink-faint);
background: #f4f6f7;
border: 1px solid var(--line);
border-radius: 5px;
}
.global-search:focus-within {
background: #fff;
border-color: #9bbec5;
}
.global-search input {
width: 100%;
min-width: 0;
color: var(--ink);
background: transparent;
border: 0;
outline: 0;
font-size: 11px;
}
.global-search input::placeholder {
color: #98a2aa;
}
.source-state {
height: 28px;
padding: 0 9px;
display: flex;
align-items: center;
gap: 6px;
color: #72501f;
background: #fff7e9;
border: 1px solid #f1dfbf;
border-radius: 4px;
font-size: 10px;
white-space: nowrap;
}
.source-dot {
width: 6px;
height: 6px;
background: #d18a28;
border-radius: 50%;
}
.source-online {
color: #146947;
background: var(--green-bg);
border-color: #b9dfcf;
}
.source-online .source-dot {
background: var(--green);
}
.source-offline {
color: #963c30;
background: var(--coral-bg);
border-color: #efc4bd;
}
.source-offline .source-dot,
.health-offline {
background: var(--coral);
box-shadow: none;
}
.avatar-button {
width: 30px;
height: 30px;
display: grid;
place-items: center;
color: #ecf7f2;
background: #31584a;
border: 0;
border-radius: 50%;
font-size: 9px;
font-weight: 700;
cursor: pointer;
}
.content {
width: 100%;
max-width: 1540px;
margin: 0 auto;
padding: 28px;
}
.page-heading {
min-height: 62px;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
margin-bottom: 22px;
}
.eyebrow {
display: block;
margin-bottom: 5px;
color: var(--cyan);
font-family: var(--font-geist-mono), monospace;
font-size: 9px;
font-weight: 700;
}
.page-heading h1 {
margin: 0;
font-size: 23px;
line-height: 30px;
letter-spacing: 0;
}
.page-heading p {
margin: 4px 0 0;
color: var(--ink-soft);
font-size: 11px;
line-height: 18px;
}
.heading-actions {
display: flex;
align-items: center;
gap: 8px;
}
.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.text-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
border-radius: 5px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
}
.primary-button,
.secondary-button,
.danger-button {
min-height: 34px;
padding: 0 13px;
}
.primary-button {
color: #f6fffb;
background: #1f7658;
border: 1px solid #1f7658;
}
.primary-button:hover {
background: #185f47;
}
.secondary-button {
color: var(--ink);
background: #fff;
border: 1px solid var(--line-strong);
}
.secondary-button:hover,
.icon-button:hover {
background: var(--surface-subtle);
}
.danger-button {
color: #9b3427;
background: #fff;
border: 1px solid #e7b9b2;
}
.danger-button:hover {
background: #fff4f2;
}
.icon-button {
width: 34px;
height: 34px;
padding: 0;
color: var(--ink-soft);
background: #fff;
border: 1px solid var(--line-strong);
}
.text-button {
padding: 4px 0;
color: var(--cyan);
background: transparent;
border: 0;
}
.metric-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.metric {
min-width: 0;
height: 92px;
padding: 15px;
display: grid;
grid-template-columns: 36px 1fr;
grid-template-rows: 1fr auto;
gap: 5px 11px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
}
.metric-icon {
width: 36px;
height: 36px;
display: grid;
place-items: center;
border-radius: 5px;
}
.metric-cyan {
color: var(--cyan);
background: var(--cyan-bg);
}
.metric-green {
color: var(--green);
background: var(--green-bg);
}
.metric-amber {
color: var(--amber);
background: var(--amber-bg);
}
.metric-coral {
color: var(--coral);
background: var(--coral-bg);
}
.metric-copy {
min-width: 0;
}
.metric-copy span,
.metric-copy strong {
display: block;
}
.metric-copy span {
margin-bottom: 1px;
color: var(--ink-soft);
font-size: 10px;
}
.metric-copy strong {
overflow: hidden;
font-family: var(--font-geist-mono), monospace;
font-size: 21px;
line-height: 27px;
text-overflow: ellipsis;
white-space: nowrap;
}
.metric > small {
grid-column: 2;
color: var(--ink-faint);
font-size: 9px;
}
.runtime-band {
min-height: 80px;
margin: 12px 0;
padding: 12px 16px;
display: grid;
grid-template-columns: minmax(280px, 1.8fr) repeat(4, minmax(95px, 0.6fr));
align-items: center;
gap: 16px;
background: #eef4f3;
border: 1px solid #d5e3df;
border-left: 3px solid #3f9b78;
border-radius: 4px;
}
.runtime-band-title {
min-width: 0;
display: flex;
align-items: center;
gap: 11px;
}
.runtime-band-title > div:nth-child(2) {
min-width: 0;
flex: 1;
}
.runtime-symbol {
width: 36px;
height: 36px;
display: grid;
place-items: center;
color: #d8f4e8;
background: #214b3c;
border-radius: 5px;
}
.runtime-band-title strong,
.runtime-band-title span {
display: block;
}
.runtime-band-title strong {
margin-bottom: 3px;
font-size: 12px;
}
.runtime-band-title span {
overflow: hidden;
color: var(--ink-soft);
font-size: 9px;
text-overflow: ellipsis;
white-space: nowrap;
}
.runtime-controls {
display: flex;
align-items: center;
gap: 5px;
}
.runtime-controls .icon-button {
width: 30px;
height: 30px;
}
.runtime-controls .runtime-stop-button {
color: #a34033;
border-color: #e2b8b1;
}
.runtime-controls .runtime-stop-button:hover {
background: #fff4f2;
}
.runtime-stat {
min-width: 0;
padding-left: 14px;
border-left: 1px solid #d0ddd9;
}
.runtime-stat span,
.runtime-stat strong,
.runtime-stat small {
display: block;
}
.runtime-stat span {
color: var(--ink-soft);
font-size: 9px;
}
.runtime-stat strong {
margin: 3px 0 1px;
font-family: var(--font-geist-mono), monospace;
font-size: 13px;
}
.runtime-stat small {
color: var(--ink-faint);
font-size: 8px;
}
.overview-grid {
display: grid;
grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
gap: 12px;
}
.panel {
min-width: 0;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
}
.panel-header {
min-height: 60px;
padding: 13px 15px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
border-bottom: 1px solid var(--line);
}
.panel-header h2 {
margin: 0;
font-size: 13px;
}
.panel-header p {
margin: 3px 0 0;
color: var(--ink-faint);
font-size: 9px;
}
.live-label {
display: flex;
align-items: center;
gap: 5px;
color: var(--green);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
font-weight: 700;
}
.live-label span {
width: 6px;
height: 6px;
background: #27a875;
border-radius: 50%;
box-shadow: 0 0 0 3px rgba(39, 168, 117, 0.12);
}
.table-scroll {
width: 100%;
overflow-x: auto;
}
.data-table {
width: 100%;
min-width: 620px;
border-collapse: collapse;
table-layout: fixed;
}
.service-table-full {
min-width: 980px;
}
.data-table.service-table-full th:first-child {
width: 24%;
}
.service-table-full th:nth-child(2) {
width: 90px;
}
.service-table-full th:nth-child(3) {
width: 150px;
}
.service-table-full th:nth-child(4) {
width: 220px;
}
.service-table-full th:nth-child(5),
.service-table-full th:nth-child(6) {
width: 72px;
}
.data-table th {
height: 34px;
padding: 0 12px;
color: var(--ink-faint);
background: #fafbfc;
border-bottom: 1px solid var(--line);
text-align: left;
font-size: 9px;
font-weight: 600;
}
.data-table th:first-child {
width: 37%;
padding-left: 15px;
}
.data-table th:nth-last-child(1) {
2026-07-29 16:32:16 +08:00
width: 150px;
}
.data-table td {
height: 54px;
padding: 7px 12px;
border-bottom: 1px solid #edf0f2;
font-size: 10px;
vertical-align: middle;
}
.data-table tbody tr:hover,
.data-table tbody tr.selected {
background: #f5f9f8;
}
.data-table tbody tr:last-child td {
border-bottom: 0;
}
.service-cell {
min-width: 0;
display: flex;
align-items: center;
gap: 9px;
}
.service-select {
width: 100%;
padding: 0;
color: inherit;
text-align: left;
background: transparent;
border: 0;
cursor: pointer;
}
.service-glyph {
flex: 0 0 auto;
width: 28px;
height: 28px;
display: grid;
place-items: center;
color: #477164;
background: #edf3f1;
border-radius: 5px;
}
.service-cell > span:last-child {
min-width: 0;
}
.service-cell strong,
.service-cell small {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.service-cell strong {
font-size: 11px;
}
2026-07-29 16:32:16 +08:00
.service-title {
min-width: 0;
display: flex;
align-items: center;
gap: 6px;
}
.service-title strong {
overflow: hidden;
text-overflow: ellipsis;
}
.active-deployment-badge {
flex: 0 0 auto;
height: 17px;
padding: 0 5px;
display: inline-flex;
align-items: center;
gap: 3px;
color: #176b4d;
background: #e4f3ed;
border: 1px solid #c5e4d8;
border-radius: 9px;
font-size: 7px;
font-weight: 700;
}
.service-cell small {
margin-top: 3px;
color: var(--ink-faint);
font-size: 8px;
}
.artifact-cell {
overflow: hidden;
color: var(--ink-soft);
font-family: var(--font-geist-mono), monospace;
font-size: 9px !important;
text-overflow: ellipsis;
white-space: nowrap;
}
.capability-summary {
max-width: 100%;
height: 23px;
padding: 0 7px;
display: inline-flex;
align-items: center;
gap: 5px;
color: #315f52;
background: #edf5f2;
border: 1px solid #d2e4de;
border-radius: 4px;
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.capability-summary > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.capability-summary > small {
flex: 0 0 auto;
color: var(--ink-faint);
font-size: 7px;
}
.capability-empty {
color: var(--ink-faint);
font-size: 9px;
}
.numeric-cell {
color: var(--ink-soft);
font-family: var(--font-geist-mono), monospace;
white-space: nowrap;
}
.status-badge {
width: fit-content;
height: 22px;
padding: 0 7px;
display: inline-flex;
align-items: center;
gap: 5px;
border-radius: 11px;
font-size: 8px;
font-weight: 600;
white-space: nowrap;
}
.status-badge > span {
width: 5px;
height: 5px;
border-radius: 50%;
}
.status-running {
color: #126b4a;
background: var(--green-bg);
}
.status-running > span {
background: #20a675;
}
.status-stopped {
color: #5e6870;
background: #edf0f2;
}
.status-stopped > span {
background: #87929a;
}
.status-faulted {
color: #9e392b;
background: var(--coral-bg);
}
.status-faulted > span {
background: #c95645;
}
.row-actions {
2026-07-29 16:32:16 +08:00
min-width: 128px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 3px;
}
.row-actions button {
width: 27px;
height: 27px;
padding: 0;
display: grid;
place-items: center;
color: #68747d;
background: transparent;
border: 1px solid transparent;
border-radius: 4px;
cursor: pointer;
}
.row-actions button:hover:not(:disabled) {
color: var(--ink);
background: #fff;
border-color: var(--line);
}
2026-07-29 16:32:16 +08:00
.row-actions .active-deployment-button:disabled {
color: #197253;
background: #e7f4ef;
border-color: #c6e4d9;
cursor: default;
opacity: 1;
}
.event-list {
padding: 4px 14px;
}
.event-row {
min-height: 59px;
padding: 10px 0;
display: grid;
grid-template-columns: 24px minmax(0, 1fr) auto;
align-items: start;
gap: 8px;
border-bottom: 1px solid #edf0f2;
}
.event-row:last-child {
border-bottom: 0;
}
.event-icon {
width: 22px;
height: 22px;
display: grid;
place-items: center;
border-radius: 50%;
}
.event-success {
color: var(--green);
background: var(--green-bg);
}
.event-warning {
color: var(--amber);
background: var(--amber-bg);
}
.event-danger {
color: var(--coral);
background: var(--coral-bg);
}
.event-neutral {
color: #69757e;
background: #edf0f2;
}
.event-row strong,
.event-row span {
display: block;
}
.event-row strong {
font-size: 9px;
line-height: 14px;
}
.event-row div > span {
margin-top: 3px;
color: var(--ink-faint);
font-size: 8px;
line-height: 12px;
}
.event-row time {
padding-top: 2px;
color: var(--ink-faint);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.detail-strip {
min-height: 72px;
margin-top: 12px;
padding: 11px 15px;
display: grid;
grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(80px, 0.55fr)) auto;
align-items: center;
gap: 15px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
}
.detail-identity,
.instance-main {
min-width: 0;
display: flex;
align-items: center;
gap: 10px;
}
.artifact-icon {
flex: 0 0 auto;
width: 36px;
height: 36px;
display: grid;
place-items: center;
color: #356959;
background: #e9f2ef;
border-radius: 5px;
}
.detail-identity span,
.detail-identity strong,
.detail-value span,
.detail-value strong {
display: block;
}
.detail-identity > div:last-child {
min-width: 0;
}
.detail-identity span,
.detail-value span {
margin-bottom: 4px;
color: var(--ink-faint);
font-size: 8px;
}
.detail-identity strong {
overflow: hidden;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.detail-identity small {
margin-left: 3px;
color: var(--ink-faint);
font-family: var(--font-geist-mono), monospace;
font-size: 9px;
}
.detail-value {
min-width: 0;
padding-left: 13px;
border-left: 1px solid var(--line);
}
.detail-value strong {
overflow: hidden;
font-family: var(--font-geist-mono), monospace;
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.detail-actions {
display: flex;
justify-content: flex-end;
2026-07-29 16:32:16 +08:00
gap: 7px;
}
.full-panel {
min-height: 520px;
}
.filterbar {
min-height: 56px;
padding: 10px 14px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--line);
}
.segmented {
width: fit-content;
display: inline-flex;
padding: 2px;
background: #eef1f3;
border: 1px solid #e2e6e9;
border-radius: 5px;
}
.segmented button {
min-height: 26px;
padding: 0 9px;
color: var(--ink-soft);
background: transparent;
border: 0;
border-radius: 3px;
font-size: 9px;
cursor: pointer;
}
.segmented button.active {
color: var(--ink);
background: #fff;
box-shadow: 0 1px 3px rgba(24, 32, 39, 0.1);
}
.result-count {
color: var(--ink-faint);
font-size: 9px;
}
.registry-note {
overflow: hidden;
color: var(--ink-soft);
font-size: 9px;
text-overflow: ellipsis;
white-space: nowrap;
}
.wit-package-table th:first-child {
width: 28%;
}
.wit-package-table th:nth-child(2) {
width: 34%;
}
.wit-package-table th:nth-child(3) {
width: auto;
}
.wit-package-table th:last-child {
width: 64px;
}
.wit-package-table .row-actions {
min-width: 0;
}
.empty-state {
min-height: 280px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--ink-faint);
}
.empty-state strong {
margin-top: 10px;
color: var(--ink);
font-size: 12px;
}
.empty-state span {
margin-top: 4px;
font-size: 9px;
}
.instance-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.instance-placeholder {
min-height: clamp(280px, 48vh, 480px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--ink-faint);
background: rgba(255, 255, 255, 0.36);
border: 1px dashed #cfd8dd;
border-radius: 6px;
}
.instance-placeholder-icon {
width: 44px;
height: 44px;
display: grid;
place-items: center;
color: #71828b;
background: #e9eef0;
border: 1px solid #d9e1e5;
border-radius: 6px;
}
.instance-placeholder strong {
margin-top: 13px;
color: var(--ink-soft);
font-size: 12px;
}
.instance-placeholder span {
margin-top: 5px;
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.instance-row {
position: relative;
min-height: 76px;
padding: 13px 14px 13px 18px;
display: grid;
grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(90px, 0.55fr)) minmax(
120px,
0.65fr
) 112px;
align-items: center;
gap: 14px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
}
.instance-indicator {
position: absolute;
inset: 12px auto 12px 0;
width: 3px;
border-radius: 0 2px 2px 0;
}
.instance-indicator.running {
background: #32a979;
}
.instance-indicator.faulted {
background: #d25847;
}
.instance-main strong,
.instance-main span,
.instance-status > span:last-child {
display: block;
}
.instance-main strong {
font-size: 11px;
}
.instance-main span {
margin-top: 4px;
color: var(--ink-faint);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.instance-status > span:last-child {
margin-top: 4px;
color: var(--ink-faint);
font-size: 8px;
}
.activity-summary {
min-height: 78px;
padding: 13px 18px;
display: grid;
grid-template-columns: repeat(4, 1fr);
align-items: center;
background: #fafbfc;
border-bottom: 1px solid var(--line);
}
.activity-summary > div {
padding-left: 18px;
border-left: 1px solid var(--line);
}
.activity-summary > div:first-child {
padding-left: 0;
border-left: 0;
}
.activity-summary span,
.activity-summary strong {
display: block;
}
.activity-summary span {
margin-bottom: 5px;
color: var(--ink-faint);
font-size: 9px;
}
.activity-summary strong {
font-family: var(--font-geist-mono), monospace;
font-size: 13px;
}
.settings-form {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
}
.settings-section {
min-height: 126px;
padding: 22px;
display: grid;
grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
gap: 34px;
border-bottom: 1px solid var(--line);
}
.settings-heading {
display: flex;
align-items: flex-start;
gap: 10px;
color: #41665a;
}
.settings-heading h2 {
margin: 0;
color: var(--ink);
font-size: 12px;
}
.settings-heading p {
margin: 4px 0 0;
color: var(--ink-faint);
font-size: 9px;
}
.settings-fields,
.dialog-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.form-field {
min-width: 0;
}
.form-field label,
.form-field > span {
display: block;
}
.form-field label {
margin-bottom: 6px;
color: var(--ink-soft);
font-size: 9px;
font-weight: 600;
}
.form-field input,
.code-field textarea {
width: 100%;
color: var(--ink);
background: #fff;
border: 1px solid var(--line-strong);
border-radius: 4px;
}
.form-field input {
height: 34px;
padding: 0 10px;
font-size: 10px;
}
.form-field input[readonly] {
color: var(--ink-soft);
background: #f6f7f8;
}
.form-field > span {
margin-top: 5px;
color: var(--ink-faint);
font-size: 8px;
}
.wide-field {
max-width: 520px;
}
.unit-input {
display: grid;
grid-template-columns: 1fr 42px;
}
.unit-input input {
border-radius: 4px 0 0 4px;
}
.unit-input > span {
display: grid;
place-items: center;
color: var(--ink-faint);
background: #f3f5f6;
border: 1px solid var(--line-strong);
border-left: 0;
border-radius: 0 4px 4px 0;
font-size: 9px;
}
.danger-section .settings-heading {
color: var(--coral);
}
.danger-section {
align-items: center;
}
.danger-section .danger-button {
width: fit-content;
}
.form-footer {
min-height: 62px;
padding: 14px 22px;
display: flex;
justify-content: flex-end;
}
.statusbar {
min-width: 0;
padding: 0 28px;
display: flex;
align-items: center;
gap: 20px;
color: #76828a;
background: #eef1f3;
border-top: 1px solid var(--line);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.statusbar span:first-child {
display: flex;
align-items: center;
gap: 5px;
color: #3c6b5b;
}
.dialog-backdrop {
position: fixed;
inset: 0;
z-index: 50;
display: grid;
place-items: center;
padding: 20px;
background: rgba(13, 19, 23, 0.58);
}
.dialog {
position: relative;
width: min(620px, 100%);
max-height: calc(100vh - 40px);
margin: 0;
padding: 0;
overflow-y: auto;
background: #fff;
border: 1px solid #cfd6da;
border-radius: 7px;
box-shadow: var(--shadow);
}
.dialog-header {
min-height: 72px;
padding: 14px 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
border-bottom: 1px solid var(--line);
}
.dialog-title {
display: flex;
align-items: center;
gap: 10px;
}
.dialog-title > span {
width: 34px;
height: 34px;
display: grid;
place-items: center;
color: #316a57;
background: #e9f3ef;
border-radius: 5px;
}
.dialog-title h2 {
margin: 0;
font-size: 14px;
}
.dialog-title p {
margin: 4px 0 0;
color: var(--ink-faint);
font-size: 9px;
}
.dialog-form {
padding: 18px;
}
.form-error {
margin-top: 12px;
padding: 9px 10px;
color: #963c30;
background: var(--coral-bg);
border: 1px solid #efc4bd;
border-radius: 4px;
font-size: 10px;
line-height: 16px;
}
.upload-zone {
height: 112px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--ink-soft);
background: #f8faf9;
border: 1px dashed #aebdb7;
border-radius: 5px;
cursor: pointer;
}
.upload-zone:hover,
.upload-zone.has-file {
color: #286b54;
background: #f1f8f5;
border-color: #68a58f;
}
.upload-zone input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
}
.upload-zone strong {
margin-top: 8px;
font-size: 10px;
}
.upload-zone span {
margin-top: 3px;
color: var(--ink-faint);
font-size: 8px;
}
.dialog-grid {
margin-top: 16px;
}
.dialog-footer {
min-height: 60px;
padding: 12px 16px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
background: #fafbfc;
border-top: 1px solid var(--line);
}
.dialog-form .dialog-footer {
margin: 18px -18px -18px;
}
2026-07-29 16:32:16 +08:00
.deployment-confirmation {
padding: 18px;
}
.deployment-route {
min-height: 72px;
display: grid;
grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
align-items: center;
gap: 12px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.deployment-route > svg {
color: var(--ink-faint);
}
.deployment-route span,
.deployment-route strong {
display: block;
}
.deployment-route span {
margin-bottom: 5px;
color: var(--ink-faint);
font-size: 8px;
}
.deployment-route strong {
overflow: hidden;
font-family: var(--font-geist-mono), monospace;
font-size: 13px;
text-overflow: ellipsis;
white-space: nowrap;
}
.deployment-target {
color: #176b4d;
}
.deployment-confirmation p {
margin: 13px 0 0;
color: var(--ink-soft);
font-size: 9px;
line-height: 16px;
}
.invoke-body {
padding: 16px;
}
.invoke-toolbar {
min-height: 36px;
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.invoke-toolbar > span {
color: var(--ink-faint);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.code-field > span,
.invoke-output > div > span {
display: block;
margin-bottom: 6px;
color: var(--ink-soft);
font-size: 9px;
font-weight: 600;
}
.code-field textarea {
height: 116px;
padding: 10px;
resize: vertical;
font-family: var(--font-geist-mono), monospace;
font-size: 10px;
line-height: 17px;
}
.invoke-output {
margin-top: 14px;
}
.invoke-output > div {
display: flex;
align-items: center;
justify-content: space-between;
}
.invoke-output-meta {
display: flex;
align-items: center;
gap: 12px;
}
.invoke-output-meta > span {
color: var(--ink-faint);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.invoke-output small {
display: flex;
align-items: center;
gap: 4px;
color: var(--green);
font-family: var(--font-geist-mono), monospace;
font-size: 8px;
}
.invoke-output pre {
min-height: 74px;
margin: 0;
padding: 10px;
overflow: auto;
color: #bdebd9;
background: #182127;
border: 1px solid #27353d;
border-radius: 4px;
font-family: var(--font-geist-mono), monospace;
font-size: 10px;
line-height: 17px;
white-space: pre-wrap;
}
.invoke-output.failed pre {
color: #ffd0c9;
background: #2a1d1b;
border-color: #57332e;
}
.toast {
position: fixed;
right: 22px;
bottom: 42px;
z-index: 70;
min-width: 210px;
min-height: 42px;
padding: 10px 13px;
display: flex;
align-items: center;
gap: 8px;
color: #e9fff6;
background: #1f3c32;
border: 1px solid #426a5c;
border-radius: 5px;
box-shadow: var(--shadow);
font-size: 10px;
}
.spin {
animation: rotate 0.9s linear infinite;
}
@keyframes rotate {
to {
transform: rotate(360deg);
}
}
@media (max-width: 1180px) {
.runtime-band {
grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(90px, 0.6fr));
}
.runtime-stat:nth-last-child(-n + 2) {
display: none;
}
.overview-grid {
grid-template-columns: 1fr;
}
.event-panel {
min-height: 280px;
}
.detail-strip {
grid-template-columns: minmax(190px, 1.4fr) repeat(2, 0.6fr) auto;
}
.detail-strip .detail-value:nth-of-type(3),
.detail-strip .detail-value:nth-of-type(4) {
display: none;
}
.instance-row {
grid-template-columns: minmax(190px, 1.35fr) repeat(2, 0.6fr) minmax(110px, 0.65fr) 112px;
}
.instance-row > .detail-value:nth-of-type(3) {
display: none;
}
}
@media (max-width: 840px) {
.app-shell {
display: block;
}
.sidebar {
position: sticky;
top: 0;
width: 100%;
height: auto;
padding: 9px 12px;
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
border-right: 0;
border-bottom: 1px solid #263139;
}
.brand {
min-width: 158px;
padding: 0;
}
.environment-switcher,
.nav-label,
.sidebar-runtime {
display: none;
}
.primary-nav {
min-width: 0;
display: flex;
flex-direction: row;
justify-content: flex-end;
overflow-x: auto;
}
.nav-item {
width: 38px;
min-width: 38px;
height: 38px;
padding: 0;
display: grid;
place-items: center;
}
.nav-item span {
display: none;
}
.nav-item::before {
inset: auto 8px -9px;
width: auto;
height: 2px;
}
.app-main {
min-height: calc(100vh - 62px);
display: grid;
grid-template-rows: 50px 1fr 28px;
}
.topbar {
padding: 0 16px;
}
.global-search {
width: 190px;
}
.source-state {
display: none;
}
.content {
padding: 20px 16px;
}
.metric-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.runtime-band {
grid-template-columns: 1fr 0.5fr;
}
.runtime-stat:nth-child(n + 3) {
display: none;
}
.settings-section {
grid-template-columns: 1fr;
gap: 18px;
}
.instance-row {
grid-template-columns: minmax(190px, 1fr) minmax(100px, 0.5fr) 104px;
}
.instance-row > .detail-value:nth-of-type(n + 2),
.instance-status {
display: none;
}
}
@media (max-width: 560px) {
.sidebar {
grid-template-columns: 42px 1fr;
}
.brand {
min-width: 0;
}
.brand > div:last-child {
display: none;
}
.breadcrumb span,
.breadcrumb svg {
display: none;
}
.global-search {
width: min(48vw, 190px);
}
.page-heading {
align-items: flex-start;
flex-direction: column;
gap: 14px;
}
.heading-actions {
width: 100%;
}
.heading-actions .primary-button {
flex: 1;
}
.metric-grid {
grid-template-columns: 1fr;
}
.metric {
height: 78px;
}
.runtime-band {
grid-template-columns: 1fr;
}
.runtime-stat {
display: none !important;
}
.instance-placeholder {
min-height: 260px;
}
.detail-strip {
grid-template-columns: 1fr auto;
}
.detail-strip .detail-value {
display: none;
}
.filterbar {
align-items: flex-start;
flex-direction: column;
gap: 9px;
}
.segmented {
max-width: 100%;
overflow-x: auto;
}
.instance-row {
grid-template-columns: minmax(150px, 1fr) 104px;
}
.instance-row > .detail-value {
display: none;
}
.activity-summary {
grid-template-columns: repeat(2, 1fr);
gap: 14px 0;
}
.activity-summary > div:nth-child(3) {
padding-left: 0;
border-left: 0;
}
.settings-fields,
.dialog-grid {
grid-template-columns: 1fr;
}
.dialog-backdrop {
padding: 10px;
}
.dialog {
max-height: calc(100vh - 20px);
}
.statusbar {
padding: 0 16px;
}
.statusbar span:not(:first-child) {
display: none;
}
}