#zeroProbePage {
  color: #3f3038;
}

body[data-view="zero-probe"] .shell {
  width: min(1500px, calc(100vw - 48px));
  padding-top: 16px;
}

body[data-view="zero-probe"] .anime-character {
  opacity: .1;
}

.zero-probe-shell {
  display: grid;
  gap: 14px;
}

.zero-probe-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 18px;
  border: 1px solid rgba(93, 156, 146, .25);
  border-radius: 14px;
  background: rgba(250, 255, 253, .88);
  box-shadow: 0 12px 30px rgba(58, 118, 108, .08);
  backdrop-filter: blur(16px);
}

.zero-probe-titlebar h2 {
  color: #3c4443;
  font-size: 22px;
  letter-spacing: 0;
}

.zero-probe-kicker {
  display: block;
  margin-bottom: 3px;
  color: #338979;
  font-size: 11px;
  font-weight: 900;
}

.zero-probe-queue-state,
.zero-probe-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(74, 151, 137, .25);
  border-radius: 8px;
  color: #2d776b;
  background: #f1fbf8;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.zero-probe-queue-state.is-active {
  border-color: rgba(200, 101, 130, .28);
  color: #a44d6d;
  background: #fff4f8;
}

.zero-probe-queue-state.is-risk {
  max-width: min(360px, 48vw);
  border-color: rgba(190, 123, 39, .38);
  color: #875915;
  background: #fff8e8;
  text-align: center;
  white-space: normal;
}

.zero-probe-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 139, 153, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 34px rgba(63, 87, 83, .08);
}

.zero-probe-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(127, 139, 153, .14);
  background: rgba(248, 252, 251, .8);
}

.zero-probe-panel-head h3 {
  color: #4d4d59;
  font-size: 16px;
  letter-spacing: 0;
}

.zero-probe-panel-head p {
  margin-top: 3px;
  color: #84908e;
  font-size: 11px;
}

.zero-probe-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.zero-probe-field {
  min-width: 0;
}

.zero-probe-wide {
  grid-column: 1 / -1;
}

.zero-probe-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.zero-probe-field-head label {
  margin: 0;
  color: #54444e;
  font-size: 12px;
}

.zero-probe-field-head span {
  color: #8b9997;
  font-size: 10px;
  font-weight: 750;
}

.zero-probe-proxy-format {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.zero-probe-proxy-format label {
  color: #7d8987;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.zero-probe-proxy-format select {
  width: 92px;
  height: 30px;
  min-width: 0;
  padding: 4px 24px 4px 8px;
  border: 1px solid rgba(123, 143, 153, .28);
  border-radius: 6px;
  color: #485755;
  background-color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

#zeroProbePage textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border-color: rgba(123, 143, 153, .28);
  border-radius: 8px;
  color: #414d50;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

#zeroProbeCountries {
  min-height: 86px !important;
}

.zero-probe-proxy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-top: 7px;
}

.zero-probe-proxy-actions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 10px;
  font-size: 11px;
}

.zero-probe-inline-status {
  min-width: 0;
  overflow: hidden;
  color: #85918f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zero-probe-inline-status.ok { color: #25785f; }
.zero-probe-inline-status.error { color: #c24f6d; }

.zero-probe-proxy-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 22px;
}

.zero-probe-proxy-stat {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(76, 153, 139, .2);
  border-radius: 6px;
  color: #51736d;
  background: #f4fbf9;
  font-size: 10px;
  font-weight: 750;
}

.zero-probe-1024 {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 139, 153, .18);
}

.zero-probe-1024-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
}

.zero-probe-1024-head strong {
  color: #55464d;
  font-size: 12px;
  letter-spacing: 0;
}

.zero-probe-1024-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(222, 127, 45, .24);
  border-radius: 6px;
  color: #a65e22;
  background: #fff7ef;
  font-size: 10px;
  font-weight: 800;
}

.zero-probe-1024-state.is-configured {
  border-color: rgba(56, 143, 112, .25);
  color: #27775f;
  background: #eef9f5;
}

.zero-probe-1024-secret,
.zero-probe-1024-options label {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: #65716f;
  font-size: 10px;
  font-weight: 750;
}

.zero-probe-1024-secret input,
.zero-probe-1024-options input {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid rgba(123, 143, 153, .28);
  border-radius: 6px;
  color: #414d50;
  background: #fff;
  font-size: 11px;
  letter-spacing: 0;
}

.zero-probe-1024-secret input {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.zero-probe-1024-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zero-probe-1024-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.zero-probe-1024-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  font-size: 10px;
}

#zeroProbe1024Status {
  display: block;
  min-height: 16px;
  white-space: normal;
}

.zero-probe-config-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.zero-probe-run-options,
.zero-probe-save-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.zero-probe-number,
.zero-probe-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  color: #60706f;
  font-size: 11px;
}

.zero-probe-number input {
  width: 64px;
  height: 34px;
  padding: 5px 8px;
  text-align: center;
}

.zero-probe-checkbox input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #328b7b;
}

.zero-probe-save-actions button {
  min-height: 36px;
  padding: 6px 12px;
}

.zero-probe-submit-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, auto);
  gap: 8px;
  padding: 0 16px 10px;
}

.zero-probe-submit-row button {
  min-height: 40px;
  padding: 7px 13px;
}

#zeroProbeStatus {
  min-height: 34px;
  margin: 0 16px 15px;
}

.zero-probe-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.zero-probe-overview > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(115, 143, 146, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(55, 90, 85, .06);
}

.zero-probe-overview strong {
  color: #395e58;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.zero-probe-overview span {
  color: #83918f;
  font-size: 10px;
  font-weight: 750;
}

.zero-probe-task-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.zero-probe-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: #98a3a1;
  font-size: 12px;
}

.zero-probe-task {
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(240px, 1.5fr) minmax(235px, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(118, 142, 145, .2);
  border-radius: 8px;
  background: #fff;
}

.zero-probe-task[data-status="done"] { border-left: 3px solid #3b9a78; }
.zero-probe-task[data-status="failed"],
.zero-probe-task[data-status="cancelled"] { border-left: 3px solid #d15d79; }
.zero-probe-task[data-status="running"],
.zero-probe-task[data-status="submitting"] { border-left: 3px solid #4d90b0; }
.zero-probe-task[data-status="paused"] { border-left: 3px solid #c79343; }

.zero-probe-risk-notice {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid rgba(190, 123, 39, .28);
  border-radius: 6px;
  color: #76521f;
  background: #fff9eb;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}

.zero-probe-task-identity {
  min-width: 0;
}

.zero-probe-task-identity strong,
.zero-probe-task-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zero-probe-task-identity strong {
  color: #4c4a55;
  font-size: 12px;
}

.zero-probe-task-identity span {
  margin-top: 3px;
  color: #919c9a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.zero-probe-task-progress {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.zero-probe-task-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #71807e;
  font-size: 10px;
  font-weight: 750;
}

.zero-probe-task-progress-head span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zero-probe-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #e9eeed;
}

.zero-probe-progress-track > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d9886, #77bda4);
  transition: width .2s ease;
}

.zero-probe-task-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.zero-probe-task-summary span {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: #94a09e;
  font-size: 9px;
}

.zero-probe-task-summary b {
  overflow: hidden;
  color: #53635f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zero-probe-task-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.zero-probe-task-actions button {
  min-width: 56px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 10px;
}

.zero-probe-task-results {
  grid-column: 1 / -1;
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid rgba(127, 139, 153, .13);
  scrollbar-width: thin;
}

.zero-probe-result-row {
  display: grid;
  grid-template-columns: 74px 70px 90px 72px minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 3px 2px;
  border-bottom: 1px solid rgba(127, 139, 153, .1);
  color: #64716f;
  font-size: 10px;
}

.zero-probe-result-row.is-head {
  position: sticky;
  top: 0;
  color: #778582;
  background: #f8fbfa;
  font-weight: 850;
}

.zero-probe-result-row .is-zero { color: #21805f; font-weight: 900; }
.zero-probe-result-row .is-fail { color: #c54c69; font-weight: 850; }

.zero-probe-log-list {
  min-height: 170px;
  max-height: 410px;
  overflow: auto;
  scrollbar-width: thin;
}

.zero-probe-log-row {
  display: grid;
  grid-template-columns: 150px 105px 66px 70px minmax(240px, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(127, 139, 153, .12);
  color: #64716f;
  font-size: 10px;
}

.zero-probe-log-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #62716f;
  background: #f7fbfa;
  font-weight: 850;
}

.zero-probe-log-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zero-probe-log-level {
  width: fit-content;
  min-width: 48px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #3b7569;
  background: #edf8f5;
  text-align: center;
  font-weight: 850;
}

.zero-probe-log-level.warn { color: #91651e; background: #fff7e8; }
.zero-probe-log-level.error { color: #b54160; background: #fff0f4; }
.zero-probe-log-level.done { color: #27765d; background: #ecf9f3; }

#zeroProbeConfig,
#zeroProbeOverview,
#zeroProbeTaskSection,
#zeroProbeLogSection {
  scroll-margin-top: 78px;
}

@media (max-width: 1050px) {
  .zero-probe-task {
    grid-template-columns: minmax(145px, .8fr) minmax(230px, 1.5fr) minmax(210px, 1fr);
  }

  .zero-probe-task-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #zeroProbePage .page-section-nav {
    position: static;
  }

  body[data-view="zero-probe"] .shell {
    width: min(100vw - 18px, 1500px);
    padding-top: 9px;
  }

  .zero-probe-titlebar {
    align-items: flex-start;
    min-height: 64px;
    padding: 11px 12px;
  }

  .zero-probe-titlebar h2 { font-size: 18px; }
  .zero-probe-field-head { align-items: flex-start; flex-direction: column; }
  .zero-probe-proxy-format { width: 100%; justify-content: space-between; }
  .zero-probe-config-grid { grid-template-columns: 1fr; padding: 12px; }
  .zero-probe-wide { grid-column: auto; }
  .zero-probe-config-footer { align-items: stretch; flex-direction: column; }
  .zero-probe-run-options { align-items: flex-start; flex-direction: column; }
  .zero-probe-save-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .zero-probe-1024-options,
  .zero-probe-1024-actions { grid-template-columns: 1fr; }
  .zero-probe-submit-row { grid-template-columns: 1fr 1fr; padding: 0 12px 10px; }
  #zeroProbeStart { grid-column: 1 / -1; }
  #zeroProbeStatus { margin: 0 12px 12px; }
  .zero-probe-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zero-probe-overview > div:last-child { grid-column: 1 / -1; }
  .zero-probe-panel-head { align-items: flex-start; padding: 10px 12px; }
  .zero-probe-task { grid-template-columns: 1fr; }
  .zero-probe-task-actions,
  .zero-probe-task-results { grid-column: auto; }
  .zero-probe-task-actions { justify-content: stretch; }
  .zero-probe-task-actions button { flex: 1 1 0; }
  .zero-probe-result-row { grid-template-columns: 58px 54px 72px 58px minmax(130px, 1fr); }
  .zero-probe-log-row { grid-template-columns: 116px 80px 54px 54px minmax(210px, 1fr); }
}
