nagomi-qr-share,
nagomi-qr-input {
  display: block;
  margin: 0.7rem 0;
}
.qr-read-status:empty {
  display: none;
}
.qr-read-status {
  color: #31563c;
  overflow-wrap: anywhere;
}
.workspace-manual {
  font-size: 0.9em;
}
.qr-modal {
  box-sizing: border-box;
  width: min(36rem, calc(100vw - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 1px solid #d5d7c9;
  border-radius: 1.25rem;
  background: #fbf7ed;
  color: #253d32;
  font:
    1rem/1.5 system-ui,
    sans-serif;
  box-shadow: 0 1.5rem 5rem #183c2c40;
  overscroll-behavior: contain;
}
.qr-modal::backdrop {
  background: #112f25b8;
  backdrop-filter: blur(3px);
}
.qr-modal-shell {
  padding: 1rem;
  min-width: 0;
}
.qr-modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d5d7c9;
}
.qr-modal h2 {
  margin: 0;
  color: #244d3e;
  font:
    1.25rem/1.4 Georgia,
    serif;
  overflow-wrap: anywhere;
}
.qr-modal-heading button {
  flex-shrink: 0;
}
.qr-modal p {
  margin: 0.9rem 0;
}
.qr-modal button,
.qr-modal .qr-button,
nagomi-qr-share button,
nagomi-qr-input button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #31563c;
  border-radius: 0.65rem;
  background: #31563c;
  color: #fffdf8;
  font: inherit;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.qr-modal :focus-visible {
  outline: 3px solid #ce943d;
  outline-offset: 3px;
}
.qr-modal button:disabled {
  opacity: 0.5;
  cursor: default;
}
.qr-gallery figure {
  margin: 1rem 0 1.5rem;
  text-align: center;
}
.qr-gallery figcaption {
  margin: 0.75rem 0;
}
.qr-card-image {
  display: block;
  width: min(100%, 29rem);
  height: auto;
  margin: auto;
  border-radius: 1rem;
}
.qr-private-note {
  padding: 0.75rem;
  border: 1px solid #c4aa72;
  border-radius: 0.65rem;
  background: #f7f0dc;
}
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.qr-file {
  position: relative;
  overflow: hidden;
}
.qr-file:focus-within {
  outline: 3px solid #ce943d;
  outline-offset: 3px;
}
.qr-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.qr-video {
  display: block;
  width: 100%;
  max-height: 22rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  background: #173b2e;
  object-fit: contain;
}
.qr-video:not([src]) {
  min-height: 2rem;
}
@media (max-width: 35rem) {
  .qr-modal {
    width: calc(100vw - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
    border-radius: 1rem;
  }
  .qr-modal-shell {
    padding: 0.75rem;
  }
  .qr-actions > * {
    flex: 1 1 9rem;
  }
}
