dialog {
  border-radius: var(--border-radius);
  border: none;
  padding: 20px;
  max-width: 640px;
  max-height: 80vh;
  position: fixed;
  top: 150px;
  bottom: 15%;

  &[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  @media (max-width: 640px) {
    height: 100vh;
    width: 100vw;
    max-height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    margin: auto;
  }

  &::backdrop {
    background: var(--color-neutral-300);
    opacity: 0.5;
  }

  header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    h2 { margin: 0; }

    .close-icon {
      font-size: 18px;
      padding: 4px;
      cursor: pointer;

      &:hover { color: var(--color-red); }
    }
  }

  contents {
    overflow-y: auto;
    flex: 1;
  }

  .column { padding: 5px 0; }
}
