/* 独立静态页面；色值沿用 client_frontend/assets/styles/color-tokens.css。 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8f9fa;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.stationHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.stationBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
}

.stationMark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0285ff;
  color: #ffffff;
  font-weight: 700;
}

.dashboardPage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
}

.pageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
}

.pageDescription {
  margin: 6px 0 0;
  color: #64748b;
}

button {
  padding: 8px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  border-color: #94a3b8;
}

button:focus-visible {
  outline: 2px solid #0285ff;
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

[hidden] {
  display: none !important;
}
.headerActions,
.filterBar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.filterBar {
  margin: 20px 0;
  align-items: end;
}
.sectionHeader {
  margin-top: 40px;
}
h2,
h3 {
  margin: 0;
  font-weight: 600;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
input,
select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #ffffff;
  color: inherit;
  min-width: 0;
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid #0285ff;
  outline-offset: 2px;
}
.primaryButton {
  background: #0285ff;
  color: #ffffff;
  border-color: #0285ff;
}
.loginPanel {
  max-width: 420px;
  margin: 40px auto;
}
.stackForm {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.checkLabel {
  flex-direction: row;
  align-items: center;
}
fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}
fieldset .checkLabel + .checkLabel {
  margin-top: 8px;
}
dialog {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  width: min(760px, calc(100% - 32px));
  max-height: 88vh;
  overflow-y: auto;
  color: #0f172a;
  background: #ffffff;
}
dialog::backdrop {
  background: rgb(15 23 42 / 35%);
}
.subtaskSection {
  border-top: 1px solid #e2e8f0;
  padding: 20px 0;
}
.subtaskSection h3 {
  margin-bottom: 8px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
}
.clientCredential {
  display: grid;
  gap: 8px;
  min-width: 220px;
  margin-top: 8px;
  font-size: 12px;
}
.clientCredential code {
  overflow-wrap: anywhere;
  user-select: all;
}
.clientCredential button {
  justify-self: start;
  padding: 4px 10px;
}
.statusBadge.completed {
  background: #d6fccf;
  color: #146105;
}
.statusBadge.failed {
  background: #ffebe9;
  color: #842029;
}
.statusBadge.running {
  color: #0285ff;
}

.clientSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0 16px;
  color: #64748b;
}

.clientSummary strong {
  margin-left: 8px;
  color: #0f172a;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.clientPanel {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.tableViewport {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 17px 22px;
}

th {
  border-bottom: 1px solid #e2e8f0;
  background: #f8f9fa;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
  max-width: 320px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #f8f9fa;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.statusBadge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.statusBadge.online {
  background: #d6fccf;
  color: #146105;
}

.statusBadge.offline {
  background: #f8f9fa;
  color: #64748b;
}

.emptyState {
  padding: 54px 24px;
  text-align: center;
}

.emptyState strong {
  font-size: 16px;
}

.emptyState p {
  margin: 8px 0 20px;
  color: #64748b;
}

.emptyState code {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8f9fa;
  color: #64748b;
  text-align: left;
  overflow-wrap: anywhere;
}

.errorMessage {
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffebe9;
  color: #842029;
}

.listFooter {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
}

.accessNotice {
  margin-top: 36px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 640px) {
  .stationHeader {
    padding: 16px;
  }

  .dashboardPage {
    padding: 28px 16px;
  }
}
