.png-export-dialog {
  width: min(620px, calc(100% - 28px));
  color: var(--text);
  background: linear-gradient(145deg, #070908, #020302 70%);
  border: 1px solid #ffffff18;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 32px 110px #000, 0 0 40px #31d69b0a;
}

.png-export-dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(4px);
}

.png-export-dialog form {
  padding: 24px;
}

.png-dialog-head,
.png-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.png-dialog-head h2 {
  margin: 3px 0 0;
  font-size: 25px;
  letter-spacing: -.03em;
}

.png-dialog-copy {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 11px;
}

.png-dialog-close {
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.png-dialog-close:hover {
  color: #63f2bd;
  border-color: #31d69b80;
  box-shadow: 0 0 18px #31d69b1f;
}

.png-export-dialog fieldset {
  border: 0;
  margin: 22px 0 17px;
  padding: 0;
}

.png-export-dialog legend,
.png-setting-grid label > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.png-export-dialog legend {
  margin-bottom: 9px;
}

.png-match-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.png-match-options label {
  position: relative;
  min-height: 58px;
  color: var(--text);
  background: #050605;
  border: 1px solid #ffffff0f;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  cursor: pointer;
  transition: .18s ease;
}

.png-match-options label:hover,
.png-match-options label:has(input:checked) {
  background: #31d69b0b;
  border-color: #31d69b65;
}

.png-match-options input,
.png-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.png-match-marker {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid #ffffff2b;
  border-radius: 4px;
  box-sizing: border-box;
}

input:checked + .png-match-marker {
  background: #31d69b;
  border-color: #31d69b;
  box-shadow: 0 0 14px #31d69b42;
}

input:checked + .png-match-marker::after {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  border: solid #00160e;
  border-width: 0 0 2px 2px;
  margin: 4px;
  transform: rotate(-45deg);
}

.png-match-copy {
  display: grid;
  gap: 3px;
}

.png-match-copy strong {
  font-size: 11px;
}

.png-match-copy small {
  color: var(--muted);
  font: 10px/1 monospace;
}

.png-setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.png-setting-grid select {
  width: 100%;
  height: 42px;
  color: var(--text);
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 6px;
  padding: 0 10px;
}

.png-checkbox {
  position: relative;
  align-self: end;
  height: 42px;
  box-sizing: border-box;
  color: var(--text);
  background: #050605;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  cursor: pointer;
}

.png-checkbox::after {
  content: "";
  width: 34px;
  height: 18px;
  background: #171917;
  border: 1px solid #ffffff16;
  border-radius: 20px;
  box-sizing: border-box;
}

.png-checkbox::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 27px;
  width: 12px;
  height: 12px;
  background: #777;
  border-radius: 50%;
  transition: .18s ease;
}

.png-checkbox:has(input:checked)::after {
  background: #31d69b33;
  border-color: #31d69b80;
}

.png-checkbox:has(input:checked)::before {
  right: 15px;
  background: #63f2bd;
  box-shadow: 0 0 10px #31d69b80;
}

.png-export-status {
  min-height: 18px;
  color: #df727a;
  font-size: 11px;
}

.png-dialog-actions {
  border-top: 1px solid #ffffff0d;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 16px;
}

.png-dialog-hint {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
