* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #d6daf0;
  color: #000000;
  font-family: "MS UI Gothic", "MS PGothic", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  min-width: 900px;
}

a {
  color: #0000cc;
  text-decoration: underline;
}
a:visited {
  color: #551a8b;
}
a:hover {
  color: #cc0000;
}

code {
  font-family: "Courier New", Courier, monospace;
  background: #c8ccdd;
  padding: 0 3px;
  border: 1px solid #9999bb;
}

#header {
  background-color: #7a8ac0;
  border-bottom: 2px solid #3344aa;
  padding: 6px 10px 0 10px;
}

#header-inner {
  padding-bottom: 4px;
}

#site-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  text-shadow: 1px 1px 0 #2233aa;
  letter-spacing: 1px;
}

#site-ver {
  font-size: 11px;
  color: #dde0ff;
  margin-left: 8px;
  font-family: "Courier New", Courier, monospace;
}

#site-sub {
  font-size: 12px;
  color: #c8ccff;
  margin-left: 6px;
}

#nav {
  background-color: #5566aa;
  margin: 4px -10px 0 -10px;
  padding: 3px 10px;
  font-size: 12px;
  border-top: 1px solid #3344aa;
}

#nav a {
  color: #ddddff;
  text-decoration: none;
  margin-right: 2px;
}
#nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#main {
  display: flex;
  padding: 10px;
  align-items: flex-start;
}

#form-panel {
  flex: 0 0 440px;
  min-width: 440px;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#output-panel {
  flex: 1 1 auto;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

#output-panel .section-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
}

#output-actions {
  padding: 4px 6px;
  background: #c8ccdd;
  border-bottom: 1px solid #9999bb;
}

#output-actions button {
  font-size: 11px;
  margin-right: 6px;
}

#copy-notice {
  color: #008800;
  font-size: 11px;
  font-family: "Courier New", Courier, monospace;
}

#output-box {
  flex: 1 1 auto;
  width: 100%;
  min-height: 560px;
  background: #f8f8f2;
  border: none;
  padding: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #111122;
  resize: none;
  line-height: 1.5;
  outline: none;
}

.section-box {
  background: #eaedf8;
  border: 1px solid #9999cc;
  border-top: 2px solid #5566aa;
}

.section-title {
  background: #5566aa;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 8px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.5px;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table tr:nth-child(even) {
  background-color: #dde0f0;
}

.form-table tr:nth-child(odd) {
  background-color: #eaedf8;
}

.form-table td {
  padding: 3px 8px;
  vertical-align: middle;
}

td.label {
  font-weight: bold;
  color: #222266;
  width: 170px;
  font-size: 12px;
  font-family: "Courier New", Courier, monospace;
}

.form-table input[type="text"],
.form-table input[type="number"] {
  background: #ffffff;
  border: 1px solid #9999bb;
  border-bottom: 1px solid #6666aa;
  border-right: 1px solid #6666aa;
  padding: 2px 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #000033;
  width: 200px;
  outline: none;
}

.form-table input[type="text"]:focus,
.form-table input[type="number"]:focus {
  border-color: #3344aa;
  background: #f0f0ff;
}

.form-table select {
  background: #ffffff;
  border: 1px solid #9999bb;
  border-bottom: 1px solid #6666aa;
  border-right: 1px solid #6666aa;
  padding: 2px 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #000033;
  width: 208px;
  outline: none;
}

.form-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #5566aa;
}

.module-note {
  font-size: 11px;
  color: #666688;
  padding: 3px 8px;
  font-style: italic;
  background: #e0e3f0;
  border-bottom: 1px solid #c0c3dd;
}

button {
  background: #c0c8e8;
  border: 1px solid #6677bb;
  border-bottom: 2px solid #445599;
  border-right: 2px solid #445599;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #111144;
  padding: 3px 10px;
  cursor: pointer;
}

button:hover {
  background: #b0b8de;
}

button:active {
  border: 1px solid #445599;
  border-top: 2px solid #445599;
  border-left: 2px solid #445599;
}

#btn-row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
}

#btn-generate {
  background: #aabbee;
  font-weight: bold;
  font-size: 13px;
  border-bottom: 2px solid #334488;
  border-right: 2px solid #334488;
}

#btn-generate:hover {
  background: #99aadd;
}

#footer {
  border-top: 2px solid #5566aa;
  background: #7a8ac0;
  color: #dde0ff;
  text-align: center;
  padding: 5px;
  font-size: 11px;
  margin-top: 10px;
}

#footer a {
  color: #dde0ff;
}