.share-dialog {
  --share-accent: color-mix(in srgb, var(--acid, #28e0d0) 58%, #ffffff);
  color: #eef7f2;
  background: #0f1512;
  border: 1px solid #34463e;
  box-shadow: 0 28px 90px #000c, 0 0 0 1px #ffffff08 inset;
}

.share-dialog::backdrop {
  background: #020705d9;
}

.share-dialog header span,
.share-expiry span,
.share-result > label {
  color: var(--share-accent);
}

.share-dialog h2 {
  color: #f3faf6;
}

.share-explanation,
.share-status {
  color: #aabdb4;
}

#close-share-dialog {
  color: #dce9e2;
  background: #1c2722;
  border: 1px solid #43564d;
}

#close-share-dialog:hover,
#close-share-dialog:focus-visible {
  color: #08100c;
  background: var(--share-accent);
  border-color: var(--share-accent);
}

.share-expiry select,
.share-url-row input {
  color: #f1f7f4;
  color-scheme: dark;
  background: #171f1b;
  border-color: #44564e;
  outline: 0;
}

.share-expiry select:focus-visible,
.share-url-row input:focus-visible {
  border-color: var(--share-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--share-accent) 28%, transparent);
}

.share-create-button,
.share-url-row button {
  color: #07100c;
  background: var(--share-accent);
  border: 1px solid var(--share-accent);
}

.share-create-button:hover,
.share-create-button:focus-visible,
.share-url-row button:hover,
.share-url-row button:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--share-accent) 24%, transparent);
}

.share-result {
  background: #151e1a;
  border: 1px solid #34463e;
}

.share-result canvas {
  background: #ffffff;
  padding: 8px;
}

.share-revoke-button {
  color: #ffb0a5;
  background: #281714;
  border-color: #8d4d44;
}

.share-revoke-button:hover,
.share-revoke-button:focus-visible {
  color: #fff1ee;
  background: #3a1e1a;
  border-color: #ff8c7c;
}

@media (max-width: 520px) {
  .share-dialog {
    width: calc(100vw - 20px);
  }
}
