/* Page layout and the controls panel (screen only; hidden in print). */

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fa;
  color: #1f2328;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.app {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}

.controls {
  background: #ffffff;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

label {
  font-size: 14px;
  min-width: 140px;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: -4px;
}

input[type="url"] {
  flex: 1 1 400px;
  min-width: 240px;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}

input[type="file"] {
  font-size: 14px;
}

/* Secondary "or open a local file" line, under the URL input. */
.file-alt {
  margin: -4px 0 10px;
  font-size: 13px;
  color: #59636e;
}

.file-alt .link-button {
  min-width: 0;
  font-size: inherit;
  color: #0969da;
  cursor: pointer;
}

.file-alt .link-button:hover {
  text-decoration: underline;
}

.file-alt input[type="file"] {
  display: none;
}

button {
  border: 1px solid #1f883d;
  background: #2da44e;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

button.secondary {
  border-color: #d1d9e0;
  background: #f6f8fa;
  color: #1f2328;
}

button:hover {
  filter: brightness(0.98);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.status {
  font-size: 13px;
  color: #59636e;
  margin-top: 6px;
  word-break: break-word;
}

.paper {
  background: #ffffff;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  overflow: hidden;
}
