:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #202124;
  color: #f2f3f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 260px;
  background: #202124;
}

main {
  display: grid;
  gap: 18px;
  padding: 18px;
}

header,
.section-heading,
.section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-actions {
  justify-content: flex-end;
  gap: 7px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 2px;
  font-size: 18px;
}

h2 {
  font-size: 13px;
}

.status {
  color: #aeb3bb;
  font-size: 11px;
}

.status {
  min-height: 16px;
}

.status.error {
  color: #ff9e9e;
}

.shortcut-note {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-left: 2px solid #00a7c4;
  color: #aeb3bb;
  font-size: 10px;
  line-height: 1.5;
}

.shortcut-note kbd {
  color: #d8dbe0;
  font: inherit;
  font-weight: 650;
}

section {
  display: grid;
  gap: 9px;
  padding-top: 15px;
  border-top: 1px solid #00a7c4;
}

section h2 {
  color: #f2f3f5;
}

button {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 8px 10px;
  background: #4178e8;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

select {
  min-height: 27px;
  border: 1px solid #45484f;
  border-radius: 5px;
  padding: 4px 6px;
  background: #292b2f;
  color: #f2f3f5;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

button.secondary {
  padding: 5px 8px;
  border-color: #4a4e55;
  background: #34363b;
}

#export-mark-refresh-button,
#active-text-refresh-button {
  border-color: #20778a;
  background: #293d42;
}

#copy-button,
#board-copy-button {
  border-color: #536d91;
  background: #303945;
}

#image-export-button,
#export-layers-window-button {
  border-color: #487b6b;
  background: #2d403a;
}

#board-clear-button {
  border-color: #79585d;
  background: #403336;
}

button.secondary:not(:disabled):hover {
  border-color: #00a7c4;
  background: #354b50;
}

button.section-command {
  width: 100%;
  min-height: 30px;
}

button.export-mark-on {
  border-color: #00a7c4;
  background: #17677a;
}

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

select:disabled {
  opacity: 0.45;
}

.active-layer-name {
  overflow: hidden;
  color: #c8ccd2;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-note {
  color: #9298a1;
  font-size: 10px;
  line-height: 1.5;
}

.layer-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #3a3d43;
  border-radius: 6px;
  background: #3a3d43;
}

.layer-info div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  background: #292b2f;
}

.layer-info div[hidden] {
  display: none;
}

.layer-info dt {
  color: #aeb3bb;
  font-size: 10px;
}

.layer-info dd {
  overflow: hidden;
  margin: 0;
  color: #e6e8eb;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-info .font-info-row {
  grid-column: 1 / -1;
}

.layer-info .font-info-row dd {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #3a3d43;
  border-radius: 6px;
  background: #292b2f;
  color: #e6e8eb;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

textarea {
  resize: vertical;
  padding: 10px;
}
