*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #202124;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* extra 0.5in top offset to sit the block lower on the viewport */
  padding: calc(24px + 0.5in) 16px 80px;
}

.center {
  width: 100%;
  max-width: 584px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.heading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.label {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  width: 100%;
}

.options-align {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  user-select: none;
}

.search-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* Pill container: input + suffix “Ping” button (Material: trailing/affix) */
.search-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.search-box:hover {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
}

.search-box:focus-within {
  border-color: rgba(26, 115, 232, 0.4);
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 8px 0 16px;
  font-size: 16px;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #202124;
}

.options {
  display: flex;
  align-items: center;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5f6368;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: #1a73e8;
  cursor: pointer;
}

.search-box .submit-btn {
  flex: 0 0 auto;
  margin: 4px 4px 4px 0;
  padding: 0 16px;
  min-height: 0;
  height: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #3c4043;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: none;
}

.search-box .submit-btn:hover {
  background: #f1f3f4;
  border-color: #dadce0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.search-box .submit-btn:active {
  background: #e8eaed;
}

.footnote {
  margin: 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: #70757a;
  text-align: center;
}

.basic-panel.hidden,
.terminal-panel.hidden {
  display: none;
}

.basic-panel {
  width: 100%;
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.basic-label {
  font-weight: 500;
}

.basic-detail {
  color: #5f6368;
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 8px;
  background: #e8eaed;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: #1a73e8;
  border-radius: 4px;
  transition: width 0.2s ease, background-color 0.25s ease;
}

.bar-fill.warn {
  background: #f9ab00;
}

.bar-fill.bad {
  background: #d93025;
}

.terminal-panel {
  width: 100%;
}

.terminal-out {
  margin: 0;
  min-height: 120px;
  max-height: 360px;
  overflow: auto;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #e8eaed;
  background: #202124;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-out--placeholder {
  color: #9aa0a6;
}

.page-bottom {
  width: 100%;
  margin: 32px 0 0;
  padding-top: 32px;
  border-top: 1px solid #e8eaed;
  color: #3c4043;
  font-size: 15px;
  line-height: 1.65;
}

.page-bottom h2,
.page-bottom h3 {
  margin: 0 0 0.5em;
  color: #202124;
  font-weight: 700;
  line-height: 1.3;
}

.page-bottom h2 {
  font-size: 1.2rem;
  margin-top: 1.5em;
}

.page-bottom h2:first-child {
  margin-top: 0;
}

.page-bottom h3 {
  font-size: 1rem;
  margin-top: 1.1em;
}

.page-bottom p {
  margin: 0 0 1em;
}

.page-bottom p:last-child {
  margin-bottom: 0;
}
