:root {
  color-scheme: light;
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 48px 12px;
  font-size: 16px;
}

main {
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2px;
  background: #c0c0c0;
  border: 2px outset #ffffff;
}

h1 {
  margin: 0;
  padding: 5px 7px;
  background: #000080;
  color: #ffffff;
  font: bold 16px Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}

form {
  margin: 0;
  padding: 20px 14px 8px;
}

table {
  width: 100%;
  border-spacing: 7px;
}

th {
  width: 34%;
  text-align: right;
  font-weight: normal;
  white-space: nowrap;
}

td {
  width: 66%;
}

input {
  width: 100%;
  min-height: 28px;
  padding: 3px 5px;
  border: 2px inset #ffffff;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font: 16px "Courier New", Courier, monospace;
}

input:focus,
button:focus {
  outline: 1px dotted #000000;
  outline-offset: 2px;
}

.actions {
  margin: 10px 7px 6px;
  text-align: right;
}

button {
  min-width: 100px;
  min-height: 30px;
  padding: 3px 12px;
  border: 2px outset #ffffff;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  font: bold 13px Arial, Helvetica, sans-serif;
}

button:active {
  border-style: inset;
}

button:disabled {
  color: #666666;
}

.message {
  min-height: 20px;
  margin: 2px 9px 10px;
  color: #800000;
  font-weight: bold;
}

.message:empty {
  visibility: hidden;
}

[hidden] {
  display: none !important;
}

@media (max-width: 460px) {
  body {
    padding-top: 18px;
  }

  th,
  td {
    display: block;
    width: 100%;
    text-align: left;
  }

  th {
    padding-top: 5px;
  }
}
