.title-bar h1 a {
  color: inherit;
  text-decoration: none;
}

.ejbox-window {
  min-height: 100vh;
  padding-bottom: 38px;
}

.ejbox-heading {
  padding: 20px 34px 14px;
  border-bottom: 1px solid #c9c9c9;
  color: #111111;
  text-align: center;
}

.ejbox-heading h2 {
  margin: 0;
  color: #1d3551;
  font-size: 22px;
  letter-spacing: 2px;
}

.ejbox-heading p {
  margin: 3px 0 0;
  font-size: 12px;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) minmax(300px, 1.2fr);
  gap: 32px;
  align-items: start;
  padding: 28px 46px;
}

.controls {
  color: #111111;
  font-size: 12px;
}

.controls fieldset {
  margin: 0 0 14px;
  padding: 17px 16px 18px;
  border: 1px solid #a7a7a7;
  background: #f5f5f5;
}

.controls legend {
  padding: 0 6px;
  font-weight: bold;
}

.controls label {
  display: block;
  margin: 13px 0 5px;
  font-weight: bold;
}

.controls label:first-of-type {
  margin-top: 0;
}

.controls input[type="file"],
.controls input[type="text"],
.controls select {
  width: 100%;
  min-width: 0;
  font: 12px Arial, Helvetica, sans-serif;
}

.controls input[type="text"],
.controls select {
  height: 25px;
  padding: 2px 5px;
  border: 1px solid #888888;
  border-radius: 0;
  background: #ffffff;
}

.controls input:focus-visible,
.controls select:focus-visible,
.download-button:focus-visible {
  outline: 2px solid #2c668f;
  outline-offset: 2px;
}

.color-row,
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-row input {
  width: 48px;
  height: 28px;
  padding: 1px;
  border: 1px solid #888888;
  background: #ffffff;
}

.color-row output,
.rating-row output {
  color: #555555;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.rating-row input {
  width: min(160px, 70%);
}

.download-button {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid #707070;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #d8d8d8);
  color: #111111;
  font: bold 13px Arial, Helvetica, sans-serif;
  box-shadow: 0 1px 1px rgb(0 0 0 / 20%);
  cursor: pointer;
}

.download-button:hover {
  background: linear-gradient(#ffffff, #cfe4ef);
}

.download-button:active {
  padding-top: 8px;
  padding-bottom: 6px;
  background: linear-gradient(#c4dce8, #eef8fc);
}

.local-note {
  margin: 8px 0 0;
  color: #777777;
  font-size: 10px;
  text-align: center;
}

.preview-area {
  color: #111111;
  text-align: center;
}

.preview-area h3 {
  margin: 0 0 8px;
  font-size: 12px;
}

#graphic-canvas {
  display: block;
  width: min(315px, 100%);
  height: auto;
  margin: 0 auto;
  border: 1px solid #777777;
  background: #24344d;
  box-shadow: 0 2px 7px rgb(0 0 0 / 30%);
}

.preview-area p {
  margin: 7px 0 0;
  color: #777777;
  font-size: 10px;
}

@media (max-width: 720px) {
  .creator-layout {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .preview-area {
    grid-row: 1;
  }

  #graphic-canvas {
    width: min(290px, 100%);
  }

  .controls input[type="file"],
  .controls input[type="text"],
  .controls select,
  .download-button {
    min-height: 44px;
    font-size: 16px;
  }

  .controls input[type="range"] {
    min-height: 44px;
  }
}
