*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: #ffffff;
  margin: 1rem;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 0;
  background: #005fcc;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.25rem 0.25rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.viewer {
  width: 100%;
}

#ViewerCanvas {
  display: block;
  border: 2px solid #555;
}

.main-layout {
  display: flex;
  gap: 15px;
  align-items: stretch; 
  width: 100%;
  margin-top: 8px;
}

/* Base column class applied to all three */
.column {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Small gap between description and textarea */
}

.left-col {
  flex: 0 1 700px; 
  min-width: 700px;
  max-width: 700px;
}

.center-col {
  flex: 0 0 auto; /* Fluid center */
  align-items: center; /* Horizontally center the button */
}

.right-col {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
}

.header-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bottom-item {
  margin-top: auto;
  height: 78px; /* Uniform height for textareas */
}

/* Vertically center the button relative to the 100px textareas */
.view-btn {
  height: 44px; /* Standard button height */
  margin-top: auto;
  margin-bottom: 0px;
  font-size: 1rem;
  font-weight: 600;
  background: #005fcc;
  color: #ffffff;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  min-width: 6rem;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

label {
  display: block;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
}

.field-hint {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  color: #444444;
}

textarea {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 2px solid #555;
  border-radius: 0.25rem;
  padding: 0.375rem 0.5rem;
  resize: vertical;
  width: 100%;
  color: #1a1a1a;
  background: #ffffff;
}

textarea:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  border-color: #005fcc;
}

.view-btn:hover {
  background: #004aaa;
}

.view-btn:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
  border-color: #ffffff;
}

.view-btn:active {
  background: #003888;
}
