* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: #fafafa;
color: #1a1a1a;
font-size: 14px;
line-height: 1.5;
}
main {
max-width: 640px;
margin: 0 auto;
padding: 24px;
}
h1 {
font-size: 18px;
font-weight: 600;
margin: 0 0 16px;
}
h2 {
font-size: 15px;
font-weight: 600;
margin: 0 0 12px;
}
ul.checks {
list-style: none;
margin: 12px 0 0;
padding: 0;
}
.check-row {
display: flex;
align-items: baseline;
gap: 8px;
padding: 8px 0;
border-top: 1px solid #eee;
}
.check-row:first-child {
border-top: 0;
}
.check-icon {
flex: 0 0 auto;
}
.check-name {
font-weight: 500;
}
.check-detail {
flex: 1 1 auto;
color: #666;
}
.fix-btn {
margin-left: auto;
padding: 4px 10px;
font-size: 13px;
}
.fix-btn[disabled] {
opacity: 0.5;
cursor: not-allowed;
}
.status-warn .check-name {
color: #8a6d00;
}
.status-fail .check-name {
color: #b00020;
}
.status-unknown .check-name {
color: #777;
}
.tab-bar {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 12px;
}
.jobs-tab {
padding: 4px 12px;
font-size: 13px;
background: transparent;
color: inherit;
border: 1px solid #ccc;
border-radius: 999px;
}
.jobs-tab:hover {
background: rgba(0, 0, 0, 0.05);
}
.jobs-tab.active {
background: #1a1a1a;
color: #fff;
border-color: #1a1a1a;
}
.job-row {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 8px;
padding: 8px 0;
border-top: 1px solid #eee;
}
.job-row:first-child {
border-top: 0;
}
.job-name {
font-weight: 500;
}
.job-desc {
flex: 1 1 100%;
color: #666;
font-size: 13px;
}
.job-run-btn {
margin-left: auto;
padding: 4px 14px;
font-size: 13px;
}
.run-row {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8px;
padding: 8px 0;
border-top: 1px solid #eee;
}
.run-row:first-child {
border-top: 0;
}
.run-icon {
flex: 0 0 auto;
}
.run-name {
font-weight: 500;
}
.run-status {
flex: 1 1 auto;
}
.kill-btn {
margin-left: auto;
padding: 4px 10px;
font-size: 13px;
}
.run-output {
flex: 1 0 100%;
margin: 4px 0 0;
padding: 8px;
max-height: 160px;
overflow: auto;
background: #f4f4f4;
border-radius: 4px;
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: break-word;
}
.run-row.status-completed .run-status {
color: #2e7d32;
}
.run-row.status-failed .run-status,
.run-row.status-killed .run-status {
color: #b00020;
}
.badge {
display: inline-block;
min-width: 18px;
padding: 0 6px;
font-size: 12px;
font-weight: 600;
line-height: 18px;
text-align: center;
color: #fff;
background: #b00020;
border-radius: 999px;
vertical-align: middle;
}
.notif-row {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 10px 0;
border-top: 1px solid #eee;
}
.notif-row:first-child {
border-top: 0;
}
.notif-icon {
flex: 0 0 auto;
line-height: 1.4;
}
.notif-main {
flex: 1 1 auto;
min-width: 0;
}
.notif-head {
display: flex;
align-items: baseline;
gap: 8px;
}
.notif-title {
font-weight: 600;
}
.notif-prio {
font-size: 12px;
}
.notif-text {
margin: 2px 0 0;
white-space: pre-wrap;
overflow-wrap: break-word;
}
.notif-meta {
margin: 4px 0 0;
font-size: 12px;
}
.notif-row.acked {
opacity: 0.6;
}
.notif-row.priority-warn .notif-title {
color: #8a6d00;
}
.notif-row.priority-emergency .notif-title {
color: #b00020;
}
.notif-row.notif-flash {
animation: notif-flash 2s ease-out;
}
@keyframes notif-flash {
0%,
40% {
background: rgba(176, 0, 32, 0.18);
}
100% {
background: transparent;
}
}
.notif-ack-btn {
flex: 0 0 auto;
padding: 4px 12px;
font-size: 13px;
}
.notif-acked {
flex: 0 0 auto;
font-size: 12px;
}
.toast-container {
position: fixed;
right: 16px;
bottom: 16px;
display: flex;
flex-direction: column;
gap: 8px;
z-index: 50;
max-width: min(360px, calc(100vw - 32px));
}
.toast {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 12px 14px;
background: #fff;
color: #1a1a1a;
border: 1px solid #e0e0e0;
border-left: 4px solid #777;
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.priority-warn {
border-left-color: #e0a900;
}
.toast.priority-info {
border-left-color: #2a72d4;
}
.toast-out {
opacity: 0;
transform: translateX(16px);
}
.toast-main {
display: flex;
flex-direction: column;
min-width: 0;
}
.toast-title {
font-size: 13px;
}
.toast-text {
font-size: 13px;
color: #555;
white-space: pre-wrap;
overflow-wrap: break-word;
}
.emergency-modal {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background: rgba(0, 0, 0, 0.55);
z-index: 100;
}
.emergency-modal[hidden] {
display: none;
}
.emergency-card {
max-width: 420px;
width: 100%;
padding: 24px;
background: #fff;
color: #1a1a1a;
border-top: 6px solid #b00020;
border-radius: 8px;
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}
.emergency-head {
font-size: 17px;
font-weight: 700;
color: #b00020;
margin-bottom: 12px;
}
.emergency-text {
margin: 0 0 12px;
white-space: pre-wrap;
overflow-wrap: break-word;
}
.emergency-meta {
margin: 0 0 16px;
font-size: 12px;
}
.emergency-ack-btn,
.emergency-close-btn {
width: 100%;
padding: 10px;
font-size: 15px;
}
.emergency-ack-btn {
background: #b00020;
color: #fff;
}
.emergency-ack-btn:hover {
background: #900019;
}
section {
padding: 16px;
margin-bottom: 12px;
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 6px;
}
section p {
margin: 0 0 8px;
}
section p:last-child {
margin-bottom: 0;
}
.muted {
color: #666;
}
.error {
color: #b00020;
}
button {
padding: 6px 14px;
font-size: 14px;
background: #1a1a1a;
color: #ffffff;
border: 0;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background: #333;
}
@media (prefers-color-scheme: dark) {
body {
background: #1a1a1a;
color: #f0f0f0;
}
section {
background: #2a2a2a;
border-color: #3a3a3a;
}
.muted {
color: #aaa;
}
button {
background: #f0f0f0;
color: #1a1a1a;
}
button:hover {
background: #d0d0d0;
}
.check-row {
border-color: #3a3a3a;
}
.check-detail {
color: #aaa;
}
.status-warn .check-name {
color: #e0b341;
}
.status-fail .check-name {
color: #ff6b6b;
}
.status-unknown .check-name {
color: #aaa;
}
.run-row {
border-color: #3a3a3a;
}
.run-output {
background: #1e1e1e;
}
.run-row.status-completed .run-status {
color: #7cc47f;
}
.run-row.status-failed .run-status,
.run-row.status-killed .run-status {
color: #ff6b6b;
}
.jobs-tab {
border-color: #4a4a4a;
}
.jobs-tab:hover {
background: rgba(255, 255, 255, 0.08);
}
.jobs-tab.active {
background: #f0f0f0;
color: #1a1a1a;
border-color: #f0f0f0;
}
.job-row {
border-color: #3a3a3a;
}
.job-desc {
color: #aaa;
}
.notif-row {
border-color: #3a3a3a;
}
.notif-row.priority-warn .notif-title {
color: #e0b341;
}
.notif-row.priority-emergency .notif-title {
color: #ff6b6b;
}
.toast {
background: #2a2a2a;
color: #f0f0f0;
border-color: #3a3a3a;
}
.toast-text {
color: #bbb;
}
.emergency-card {
background: #2a2a2a;
color: #f0f0f0;
}
.emergency-head {
color: #ff6b6b;
}
.emergency-ack-btn {
background: #b00020;
color: #fff;
}
.emergency-ack-btn:hover {
background: #c4102a;
}
}