:root { color-scheme: light; font-family: Arial, sans-serif; color: #17212b; background: #eef2f3; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.topbar { min-height: 58px; background: #163541; color: #ffffff; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.brand { display: flex; align-items: baseline; gap: 12px; } .brand strong { font-size: 19px; } .brand span, .topbar-status { color: #c4d5d9; font-size: 12px; }
.topbar-actions, .topbar-status { display: flex; align-items: center; gap: 12px; } .status-badge { border: 1px solid #76ada3; color: #d6f1e9; padding: 4px 8px; border-radius: 4px; }
.admin-login { position: fixed; z-index: 10; inset: 58px 0 0; display: grid; place-items: center; padding: 24px; background: #eef2f3; }
.admin-login[hidden] { display: none; }
.admin-login-form { width: min(100%, 360px); border: 1px solid #cbd7da; background: #ffffff; padding: 20px; display: grid; gap: 16px; }
.admin-login-form h1 { font-size: 18px; }.admin-login-form label { display: grid; gap: 5px; }.admin-login-form input { margin: 0; }
.app-shell { min-height: calc(100vh - 58px); display: grid; grid-template-columns: 176px minmax(0, 1fr); }
.sidebar { background: #e2e9eb; border-right: 1px solid #c6d2d5; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-item, .nav-link { border: 0; background: transparent; color: #31444b; min-height: 36px; text-align: left; padding: 8px 10px; border-radius: 4px; font-size: 13px; text-decoration: none; cursor: pointer; }
.nav-item:hover, .nav-item.active { background: #ffffff; color: #0e5f61; font-weight: 600; }
.workspace { min-width: 0; padding: 22px; max-width: 1600px; width: 100%; margin: 0 auto; }
.view { display: none; } .view.active { display: block; }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #cfdadd; }
h1, h2 { margin: 0; font-weight: 600; } h1 { font-size: 20px; } h2 { font-size: 14px; } p { margin: 5px 0 0; color: #63737a; font-size: 13px; }
.metric-strip { display: grid; grid-template-columns: repeat(5, minmax(128px, 1fr)); border: 1px solid #cbd7da; border-top: 0; background: #ffffff; margin-bottom: 16px; }
.metric-strip div { min-height: 82px; padding: 15px; border-right: 1px solid #dce5e7; } .metric-strip div:last-child { border-right: 0; }
.metric-strip span, label { color: #5e6e75; font-size: 12px; display: block; } .metric-strip strong { display: block; margin-top: 8px; font-size: 22px; font-weight: 600; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 16px; }
.data-panel, .table-surface, .control-form { border: 1px solid #cbd7da; background: #ffffff; } .data-panel { min-height: 250px; }
.panel-heading { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #dbe4e6; color: #5f6f75; font-size: 12px; }
.details { padding: 14px; margin: 0; display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 10px; font-size: 13px; } dt { color: #63737a; } dd { margin: 0; overflow-wrap: anywhere; }
.event-list, .result-list { margin: 0; padding: 8px 14px 14px 32px; font-size: 13px; } .event-list li, .result-list li { padding: 6px 0; border-bottom: 1px solid #edf1f2; } .empty { color: #718188; text-align: center; }
.runner-panel { min-height: 188px; }.runner-list { padding: 10px 14px; display: grid; gap: 8px; }.runner-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 4px 12px; border-bottom: 1px solid #edf1f2; padding-bottom: 8px; font-size: 13px; }.runner-row small { grid-column: 1 / -1; color: #63737a; overflow-wrap: anywhere; }
.toolbar { display: flex; align-items: end; gap: 10px; } .toolbar label { min-width: 128px; } select, input { width: 100%; min-height: 34px; margin-top: 5px; border: 1px solid #aebdc1; border-radius: 4px; background: #ffffff; color: #17212b; padding: 6px 8px; }
.command { min-height: 34px; border: 1px solid #146b6c; border-radius: 4px; background: #146b6c; color: #ffffff; padding: 6px 10px; cursor: pointer; font-size: 13px; } .command.secondary { background: #ffffff; color: #146b6c; } .command.danger, .danger { background: #a23f39; border-color: #a23f39; color: #ffffff; } .command:disabled { opacity: .45; cursor: not-allowed; }
.table-surface { overflow-x: auto; margin-top: 16px; } table { width: 100%; border-collapse: collapse; min-width: 790px; font-size: 13px; } th { text-align: left; color: #5f6f75; font-weight: 600; background: #f6f9f9; } th, td { padding: 10px 12px; border-bottom: 1px solid #e0e8ea; white-space: nowrap; } td { overflow: hidden; text-overflow: ellipsis; max-width: 180px; } .list-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; color: #63737a; font-size: 12px; }
.integration-grid { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(270px, 1fr) minmax(270px, 1fr); gap: 16px; margin-top: 16px; } .control-form { padding: 14px; } .control-form label { margin-bottom: 15px; } .command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .command-grid button { min-height: 36px; border: 1px solid #146b6c; border-radius: 4px; background: #146b6c; color: #ffffff; cursor: pointer; font-size: 13px; } .command-grid .danger { background: #a23f39; border-color: #a23f39; } .full { width: 100%; margin-top: 8px; }
.node-layout, .api-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 16px; margin-top: 16px; } .api-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .node-layout .data-panel { min-height: 320px; } .service-list, .node-list { padding: 10px; } .service-row { width: 100%; border: 1px solid #dce5e7; background: #fff; border-radius: 4px; text-align: left; padding: 12px; margin-bottom: 8px; cursor: pointer; color: #253a42; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .service-row:hover, .service-row.selected { border-color: #146b6c; background: #f1f8f7; } .service-row strong { font-size: 14px; } .service-row span, .service-row small, .node-row span { color: #67767c; font-size: 12px; } .service-row small { grid-column: 1 / -1; } .node-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 4px; border-bottom:1px solid #e6edef; } .node-row div { min-width:0; display:grid; gap:4px; } .node-row strong, .node-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .api-steps { margin: 0; padding: 18px 20px 18px 36px; color:#394b52; font-size:13px; } .api-steps li { padding:8px 0; border-bottom:1px solid #edf1f2; } .api-list { padding:14px; grid-template-columns: minmax(0, 1fr); gap:5px; } .api-list dt { margin-top:8px; font-weight:600; color:#3f535a; } .api-list dd { font-size:12px; color:#617279; } code { font-family: Consolas, monospace; color:#0e5f61; overflow-wrap:anywhere; }
.notice { position: fixed; right: 18px; bottom: 18px; max-width: min(460px, calc(100vw - 36px)); background: #23363d; color: #ffffff; border-left: 3px solid #d09b35; padding: 10px 12px; font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .15s, transform .15s; } .notice.visible { opacity: 1; transform: translateY(0); }
.state-active { color: #0c7160; } .state-failed { color: #a23f39; } .state-quarantined { color: #8a6417; } .job-state { display: grid; gap: 3px; } .job-state small { color: #8a3d35; font-size: 12px; line-height: 1.25; }
.job-row { cursor: pointer; } .job-row:hover, .job-row.selected { background: #f1f8f7; } .job-detail-panel { flex: 0 0 250px; min-height: 0; margin-top: 16px; display: flex; flex-direction: column; overflow: hidden; } .job-detail { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; padding: 10px 14px; display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 10px; align-content: start; } .job-detail-node { border: 1px solid #dce5e7; padding: 10px; min-width: 0; font-size: 12px; } .job-detail-node header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; } .job-detail-node header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .job-detail-node header small { grid-column: 1 / -1; color: #63737a; overflow-wrap: anywhere; } .job-detail-node dl { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 8px; margin: 10px 0; color: #63737a; } .job-detail-node dt, .job-detail-node dd { margin: 0; overflow-wrap: anywhere; } .job-detail-node ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #edf1f2; } .job-detail-node li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 7px 0; border-bottom: 1px solid #edf1f2; } .job-detail-node li small { grid-column: 1 / -1; color: #63737a; overflow-wrap: anywhere; }
@media (max-width: 1080px) { .metric-strip { grid-template-columns: repeat(3, 1fr); } .integration-grid { grid-template-columns: 1fr 1fr; } .control-form { grid-column: span 2; } }
@media (max-width: 760px) { .topbar { padding: 0 14px; } .brand span { display: none; } .topbar-actions { gap: 6px; }.topbar-status span:first-child { display: none; } .app-shell { grid-template-columns: 1fr; } .sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #c6d2d5; padding: 8px; } .nav-item, .nav-link { white-space: nowrap; } .workspace { padding: 16px; } .view-heading { align-items: stretch; flex-direction: column; } .metric-strip { grid-template-columns: repeat(2, 1fr); } .metric-strip div:nth-child(2n) { border-right: 0; } .two-column, .integration-grid, .node-layout, .api-grid { grid-template-columns: 1fr; } .control-form { grid-column: auto; } .toolbar { align-items: stretch; flex-direction: column; } }

/* Keep the console frame stable; growing records scroll inside their own surface. */
html, body { height: 100%; overflow: hidden; }
.app-shell { height: calc(100vh - 58px); min-height: 0; }
.sidebar { min-height: 0; overflow-y: auto; }
.workspace { height: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.view.active { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; overflow: hidden; }
.view-heading, .metric-strip, .list-footer { flex: 0 0 auto; }
.view[data-view-panel="overview"] .two-column { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.view[data-view-panel="overview"] .data-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.runner-panel { grid-column: 1 / -1; }
.event-list, .runner-list, .details, .result-list, .service-list, .node-list, .api-steps, .api-list { min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.event-list, .runner-list { flex: 1 1 auto; }
.table-surface { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.table-surface thead th { position: sticky; top: 0; z-index: 1; }
.view[data-view-panel="leases"] .table-surface, .view[data-view-panel="tests"] .table-surface { margin-top: 16px; }
.view[data-view-panel="tests"] .table-surface { min-height: 150px; }
.node-layout, .integration-grid, .api-grid { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.node-layout .data-panel, .integration-grid .data-panel, .api-grid .data-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.node-layout .service-list, .node-layout .node-list, .api-grid .api-steps, .api-grid .api-list { flex: 1 1 auto; }
.integration-grid .control-form { overflow: auto; scrollbar-gutter: stable; }
.panel-heading-wrap { align-items: center; gap: 8px; }
.compact-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.compact-toolbar select, .compact-toolbar input { width: 118px; min-height: 30px; margin: 0; font-size: 12px; }
.compact-toolbar .command { min-height: 30px; padding: 4px 8px; }
.toolbar { flex-wrap: wrap; justify-content: flex-end; }
.toolbar label { min-width: 112px; }.toolbar label:last-of-type { min-width: 148px; }
.toolbar input, .toolbar select { margin-top: 3px; }
.row-select { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; cursor: pointer; }
.row-select input, table input[type="checkbox"] { width: 15px; min-height: 15px; margin: 0; accent-color: #146b6c; }
.row-select span { min-width: 0; display: grid; gap: 2px; }.row-select strong { font-size: 13px; }.row-select em { color: #63737a; font-style: normal; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.row-select small { color: #63737a; white-space: nowrap; }
@media (max-width: 1080px) { .view[data-view-panel="overview"] .two-column { grid-template-columns: 1fr 1fr; } .compact-toolbar { flex-wrap: wrap; } }
@media (max-width: 760px) { html, body { overflow: auto; } .app-shell { height: auto; min-height: calc(100vh - 58px); } .workspace { height: auto; overflow: visible; } .view.active { overflow: visible; } .view[data-view-panel="overview"] .two-column, .node-layout, .integration-grid, .api-grid { overflow: visible; } .view[data-view-panel="overview"] .data-panel, .node-layout .data-panel, .integration-grid .data-panel, .api-grid .data-panel { min-height: 220px; } .event-list, .runner-list, .details, .result-list, .service-list, .node-list, .api-steps, .api-list, .table-surface { max-height: 46vh; } .job-detail-panel { min-height: 250px; } .job-detail { grid-template-columns: 1fr; max-height: 46vh; } .compact-toolbar { width: 100%; justify-content: flex-start; } .compact-toolbar select, .compact-toolbar input { flex: 1 1 120px; } }
