* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  background: #111318;
  color: #e6e9ef;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.8rem;
  color: #f5f7fa;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #1a1d24;
  border: 1px solid #303540;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

td,
th {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #2b2f38;
}

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

td:first-child,
th {
  font-weight: 600;
  color: #aeb6c5;
  white-space: nowrap;
  text-align: left;
}

td:nth-child(2) {
  width: 25%;
}

.result-cell {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  color: #8ab4f8;
  text-align: right;
  white-space: nowrap;
  background: #20242c;
  width: 30%;
}

label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.label-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #3a404c;
  border-radius: 5px;
  background: #111318;
  color: #f0f2f5;
  font: inherit;
  text-align: right;
}

input:hover {
  border-color: #4a5261;
}

input:focus {
  outline: none;
  border-color: #5b8def;
  box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.2);
}

@media (max-width: 650px) {
  body {
    padding: 1rem 0.5rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  table {
    font-size: 0.85rem;
  }

  td,
  th {
    padding: 0.5rem;
  }
}
