header {
  margin-bottom: 20px;
}

nav {
  margin: 10px;
}

/* Squircles need a larger radius than circular corners for visible smoothing.
   Keep the original Tailwind radii in browsers without corner-shape support. */
@supports (corner-shape: squircle) {
  :root {
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-3xl: 3rem;
  }

  /* Tailwind's unsuffixed rounded utility uses a literal radius, not a token. */
  .rounded {
    border-radius: 0.5rem;
  }

  /* Fully rounded badges and circular indicators retain their existing shapes. */
  :where(.rounded, .rounded-sm, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl, select):not(.rounded-full),
  ::file-selector-button {
    corner-shape: squircle;
  }
}

select {
  appearance: none;
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid rgb(156 163 175);
  border-radius: var(--radius-md, 0.375rem);
  background-color: rgb(255 255 255);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  color: rgb(17 24 39);
  line-height: 1.5rem;
  padding: 0.625rem 2.5rem 0.625rem 0.75rem;
}

select:focus {
  border-color: rgb(37 99 235);
  box-shadow: 0 0 0 1px rgb(37 99 235);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

select:disabled {
  background-color: rgb(243 244 246);
  color: rgb(107 114 128);
  cursor: not-allowed;
}

dialog {
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  position: fixed;
}

dialog::backdrop {
  background: rgb(2 6 23 / 0.6);
}
