:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f2f2f2;
  color: #202020;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f2f2f2;
}

.digger-lite-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.digger-lite-logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
  margin: 0 auto 18px;
}

.digger-lite-panel {
  width: min(720px, 100%);
  background: #ffffff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  padding: 22px;
  box-sizing: border-box;
}

.digger-lite-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.digger-lite-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.digger-lite-header p {
  margin: 7px 0 0;
  color: #555555;
  font-size: 15px;
}

.digger-lite-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eeeeee;
  color: #333333;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.digger-lite-badge.ok {
  background: #dff2e5;
  color: #186235;
}

.digger-lite-badge.bad {
  background: #ffe1e1;
  color: #8a1820;
}

.digger-lite-instructions {
  margin: 18px 0;
  padding: 12px 14px;
  background: #f7f1e8;
  border: 1px solid #e6d8c8;
  border-radius: 6px;
  color: #303030;
  line-height: 1.45;
}

.digger-lite-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.digger-lite-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #c51f2f;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.digger-lite-actions button:hover:not(:disabled) {
  background: #a81926;
}

.digger-lite-actions button:disabled {
  cursor: not-allowed;
  background: #d4d4d4;
  color: #777777;
}

.digger-lite-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 10px;
}

.digger-lite-status-grid div {
  background: #f6f6f6;
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: 11px 12px;
}

.digger-lite-status-grid span {
  display: block;
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.digger-lite-status-grid strong {
  display: block;
  margin-top: 4px;
  min-height: 22px;
  color: #1f5fbf;
}

.digger-lite-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e2e2;
  margin-bottom: 12px;
}

.digger-lite-progress div {
  width: 0%;
  height: 100%;
  background: #1f8a4c;
  transition: width 180ms ease;
}

#logBox {
  width: 100%;
  height: 230px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 12px;
  font: 13px/1.45 Consolas, "Courier New", monospace;
  color: #202020;
  background: #ffffff;
}

@media (max-width: 620px) {
  .digger-lite-shell {
    padding: 12px;
  }

  .digger-lite-panel {
    padding: 16px;
  }

  .digger-lite-header {
    display: block;
  }

  .digger-lite-badge {
    display: inline-block;
    margin-top: 12px;
  }

  .digger-lite-actions,
  .digger-lite-status-grid {
    grid-template-columns: 1fr;
  }
}
