* {
  box-sizing: border-box;
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: #0b0d10;
  color: #e7e9ee;
  margin: 0;
  padding: 12px;
}

main {
  max-width: 680px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

h3 {
  margin: 16px 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.viewer-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.note {
  margin: 0 0 10px;
  color: #6f7785;
}

.panel {
  background: transparent;
  border: none;
  border-bottom: 1px solid #151a22;
  padding: 8px 0;
  border-radius: 0;
  margin-bottom: 10px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.range-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 240px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  flex: 1;
  min-width: 160px;
}

.hidden {
  display: none;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="file"] {
  background: transparent;
  color: #e7e9ee;
  border: 1px solid #1f2530;
  border-radius: 0;
  padding: 4px 6px;
}

.field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.actions {
  display: flex;
  gap: 8px;
}

button {
  background: transparent;
  border: none;
  color: #cfd3dc;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
}

button[disabled] {
  color: #5d6572;
  cursor: not-allowed;
}

.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}


textarea {
  width: 100%;
  background: transparent;
  color: #c7ccd4;
  border: 1px solid #1f2530;
  border-radius: 0;
  padding: 6px;
  resize: vertical;
}

.thumbnails {
  margin-top: 4px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.thumbnail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: transparent;
  border: 1px solid #1f2530;
  border-radius: 0;
}

.thumbnail-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid #1f2530;
  background: #0a0c10;
}

.thumbnail-item span {
  font-size: 10px;
  color: #7a828f;
  word-break: break-word;
}
